1 {% load i18n fb_tags %}
2 <div id="changelist-filter">
3 <h2>{% trans "Filter" %}</h2>
4 {% if query.filter_date %}
5 <div class="filterset collapse-open">
7 <div class="filterset collapse-closed">
9 <h3>{% trans "By Date" %}</h3>
11 {% if query.filter_date %}<li>{% else %}<li class="selected">{% endif %}<a href="{% query_string "" "filter_date" %}">{% trans "Any Date" %}</a></li>
12 {% ifequal query.filter_date 'today' %}<li class="selected">{% else %}<li>{% endifequal %}
13 <a href="{% query_string "" "filter_date" %}&filter_date=today">{% trans "Today" %}</a></li>
14 {% ifequal query.filter_date 'past7days' %}<li class="selected">{% else %}<li>{% endifequal %}
15 <a href="{% query_string "" "filter_date" %}&filter_date=past7days">{% trans "Past 7 days" %}</a></li>
16 {% ifequal query.filter_date 'thismonth' %}<li class="selected">{% else %}<li>{% endifequal %}
17 <a href="{% query_string "" "filter_date" %}&filter_date=thismonth">{% trans "Past 30 days" %}</a></li>
18 {% ifequal query.filter_date 'thisyear' %}<li class="selected">{% else %}<li>{% endifequal %}
19 <a href="{% query_string "" "filter_date" %}&filter_date=thisyear">{% trans "This year" %}</a></li>
22 {% if query.filter_type %}
23 <div class="filterset collapse-open">
25 <div class="filterset collapse-closed">
27 <h3>{% trans "By Type" %}</h3>
29 {% if query.filter_type %}<li>{% else %}<li class="selected">{% endif %}<a href="{% query_string "" "filter_type" %}">{% trans "All" %}</a></li>
30 {% for extension in settings_var.EXTENSIONS %}
31 {% ifequal query.filter_type extension %}<li class="selected">{% else %}<li>{% endifequal %}<a href="{% query_string "" "filter_type" %}&filter_type={{ extension }}">{% trans extension %}</a></li>