{% import "macros.html" as macros %} {% cache 600 "scope_sort_tabs" search_tags request.user scope sort query context.page context.page_size language_code %}
{% trans %}In:{% endtrans %} {% trans %}all{% endtrans %} {% trans %}unanswered{% endtrans %} {% if request.user.is_authenticated() %} {% trans %}favorite{% endtrans %} {% endif %}
{% trans %}Sort by:{% endtrans %} {% if show_sort_by_relevance %} {% set asc_relevance_tooltip = _('most relevant questions') %} {% set desc_relevance_tooltip = _('click to see most relevant questions') %} {% set relevance_label = _('relevance') %} {% if query %} {{relevance_label}} ▼ {% else %} href="?sort=relevance-desc" class="off" title="{{desc_relevance_tooltip}}">{{relevance_label}} {% endif %} {% endif %} {% endif %} {{macros.reversible_sort_button( button_sort_criterium = 'age', label = _('by date'), asc_tooltip = _('click to see the oldest questions'), desc_tooltip = _('click to see the newest questions'), current_sort_method = sort ) }} {{macros.reversible_sort_button( button_sort_criterium = 'activity', label = _('by activity'), asc_tooltip = _('click to see the least recently updated questions'), desc_tooltip = _('click to see the most recently updated questions'), current_sort_method = sort ) }} {{macros.reversible_sort_button( button_sort_criterium = 'answers', label = _('by answers'), asc_tooltip = _('click to see the least answered questions'), desc_tooltip = _('click to see the most answered questions'), current_sort_method = sort ) }} {{macros.reversible_sort_button( button_sort_criterium = 'votes', label = _('by votes'), asc_tooltip = _('click to see least voted questions'), desc_tooltip = _('click to see most voted questions'), current_sort_method = sort ) }}
{% endcache %}