Optimisation de la requête des ressources valides
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / menu.html
1 {% load sep %}
2 <h1>Filtrer par <em>région</em></h1>
3 <ul>
4 <li{% if not region_active %} class="active"{% endif %}
5 ><a href="{{ request.get_full_path|change_region:'all' }}">Toutes les régions</a</li>
6 {% for r in regions %}
7 <li{% ifequal r.id region_active %} class="active"{% endifequal %}
8 ><a href="{{ request.get_full_path|change_region:r.id }}">{{ r.nom }}</a></li>
9 {% endfor %}
10 </ul>
11
12 <h1>Filtrer par <em>discipline</em></h1>
13 <ul>
14 <li{% if not discipline_active %} class="active"{% endif %}
15 ><a href="{{ request.get_full_path|change_discipline:'all' }}">Toutes les disciplines</a></li>
16 {% for d in disciplines %}
17 <li{% ifequal d.id discipline_active %} class="active"{% endifequal %}
18 ><a href="{{ request.get_full_path|change_discipline:d.id }}">{{ d.nom }}</a></li>
19 {% endfor %}
20 </ul>