summaryrefslogtreecommitdiffstats
path: root/askbot/templates/widgets/scope_nav.html
blob: a6bda630af4f76abb08add4b18cb39ad7981f86b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% if active_tab != "ask" %}
    {% if not search_state %}  {#  get empty SearchState() if there's none #}
        {% set search_state=search_state|get_empty_search_state %}
    {% endif %}
    <a class="scope-selector {% if scope == 'all' %}on{% endif %}"
        href="{{ search_state.change_scope('all').full_url() }}" title="{% trans %}see all questions{% endtrans %}">{% trans %}ALL{% endtrans %}</a>
    <a class="scope-selector {% if scope == 'unanswered' %}on{% endif %}"
        href="{{ search_state.change_scope('unanswered').change_sort('answers-asc').full_url() }}" title="{% trans %}see unanswered questions{% endtrans %}">{% trans %}UNANSWERED{% endtrans %}</a>
    {% if request.user.is_authenticated() %} 
    <a class="scope-selector {% if scope == 'favorite' %}on{% endif %}"
      href="{{ search_state.change_scope('favorite').full_url() }}" title="{% trans %}see your followed questions{% endtrans %}">{% trans %}FOLLOWED{% endtrans %}</a>
    {% endif %}
{% else %}
    <div class="scope-selector ask-message">{% trans %}Please ask your question here{% endtrans %}</div>
{% endif %}