a72e846510f55c5b92b70dce06b665a7784df826
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / sites / index.html
1 {% extends "container_base.html" %}
2 {% load pagination_tags %}
3
4 {% block contenu %}
5 {% autopaginate sites 10 %}
6
7 <ul class="actions">
8 <li><a href="{% url aide %}#sitotheque">Aide</a></li>
9 {% include "sites/actions.html" %}
10 </ul>
11 <h1>Sites &#8212; Sitothèque</h1>
12
13 <h2>Rechercher</h2>
14
15 <form method="get" action="">
16 <table id="repertoire_recherche">
17 {% with search_form as form %}
18 {% include "render_search_form.html" %}
19 {% endwith %}
20 <tr><th></th><td><input type="submit" class="bouton" value="Rechercher" /></td></tr>
21 </table>
22 </form>
23
24 <h2>Résultats</h2>
25 <div class="sous-titre">
26 {{nb_sites}} site{{ nb_sites|pluralize }} correspondant à votre recherche
27 (<a href="{% url rss_sites %}?{{ request.META.QUERY_STRING }}">Fil RSS</a>)
28 {% if user.is_authenticated %}
29 (<a href="{% url sauvegarder_recherche "sites" %}?{{ request.META.QUERY_STRING }}">Sauvegarder cette recherche</a>)
30 {% endif %}
31 </div>
32
33 <div class="pagination">{% paginate %}</div>
34 {% for site in sites %}
35 {% include "sites/resultat.html" %}
36 {% endfor %}
37 <div class="pagination">{% paginate %}</div>
38 {% endblock %}