c5fa79de23375190465f4bbefcf134cbfb2fd1da
[auf_savoirs_en_partage_django.git] / auf_savoirs_en_partage / templates / savoirs / actualite_index.html
1 {% extends "container_base.html" %}
2
3 {% load pagination_tags %}
4
5 {% block contenu %}
6 {% autopaginate actualites %}
7 <h4>Actualités</h4>
8
9 <div class="contenu-wrapper">
10 <form action="" method="get">
11 <input type="text" name="q" value="{{ request.GET.q }}" size="50" />
12 <input type="submit" value="Rechercher" />
13 </form>
14 <div class="centre">{% paginate %}</div>
15 <table id="repertoire">
16 <tr>
17 <th>Nom</th>
18 <th>Source</th>
19 </tr>
20 {% for actualite in actualites %}
21 <tr class="{% cycle 'odd' 'notodd' %}">
22 <td><a href="{{ actualite.url }}" class="le-titre">{{ actualite.titre|truncatewords:20 }}</a></td>
23 <td>{{ actualite.source.nom }}</td>
24 </tr>
25 {% endfor %}
26 </table>
27 <div class="centre">{% paginate %}</div>
28 </div>
29 {% endblock %}