1 {% extends "news.html" %}
2 {% load paniktags i18n %}
3 {% block title %}{% trans 'News' %} - Archives{% endblock %}
5 <div class="search-filters">
6 {% if facets.fields.news_categories %}
8 <ul class="custom padded">
9 <li><span class="mainLabel">Catégorie :</span></li>
10 {% for category in facets.fields.news_categories %} <li>
11 {% if category.0 in selected_news_categories %}
12 <a class="check icon-check" href="{{ request.get_full_path|remove_news_category_facet:category.0 }}">
13 {{ category.0 }} <span class="smooth">| {{ category.1 }}</span>
16 <a class="check icon-check-empty" href="{{ request.get_full_path|append_news_category_facet:category.0 }}">{{ category.0 }} <span class="smooth">| {{ category.1 }}</span></a>
24 {% if facets.fields.tags %}
26 <ul class="tag-facets custom padded">
27 <li><span class="mainLabel">Mots-clés :</span></li>
28 {% for tag in facets.fields.tags|slice:":20" %} {# Provide only the top 20 tags #}
30 {% if tag.0 in selected_tags %}
31 <a class="check icon-check" href="{{ request.get_full_path|remove_tag_facet:tag.0 }}">
32 {{ tag.0 }} <span class="smooth">| {{ tag.1 }}</span>
35 <a class="check icon-check-empty" href="{{ request.get_full_path|append_tag_facet:tag.0 }}">{{ tag.0 }} <span class="smooth">| {{ tag.1 }}</span></a>
47 <form method="get" action="." class="padded center" id="search-form">
49 {% for category in selected_news_categories %}
50 <input type="hidden" name="selected_facets" value="news_categories_exact:{{category}}"/>
52 {% for tag in selected_tags %}
53 <input type="hidden" name="selected_facets" value="tags_exact:{{tag}}"/>
56 <button class="icon-search"><span class="sr-only">{% trans "Search" %}</span></button>
63 {% if not page.object_list %}
64 <div class="big error padded center">Manque de pot, pas de résultats à cette recherche !</div>
67 {% if page.has_previous %}
68 <div class="previous-page cf">
69 <a class="button big left" href="?q={{ query }}&page={{ page.previous_page_number }}{{ facets_qs }}">« Résultats précédénts</a>
73 <div id="Emission-container" class="emission padded">
74 {% if page.object_list %}
75 {% regroup page.object_list by date|date:"F Y"|capfirst as month_list %}
77 {% for month in month_list %}
78 <div class="monthGroup {% if forloop.counter|divisibleby:2 %}even{% else %}odd{% endif %}">
79 <div class="legend button" onclick="$('#{{ month.grouper|slugify }}').toggle();"
80 >> {{ month.grouper }}</div>
81 <ul class="custom list" id="{{ month.grouper|slugify }}"
83 {% for result in month.list %}
84 <li>{% with result.object as content %}{% news_inline %}{% endwith %}</li>
93 {% if page.has_next %}
94 <div class="next-page cf">
95 <a class="button big right" href="?q={{ query }}&page={{ page.next_page_number }}{{ facets_qs }}">Résultats suivants »</a>