]> git.0d.be Git - panikdb.git/blob - panikdb/templates/emissions/newscategory_list.html
templates: add proper markup for appbar action buttons
[panikdb.git] / panikdb / templates / emissions / newscategory_list.html
1 {% extends "base.html" %}
2
3 {% block more-user-links %}
4 {{ block.super }}
5 {% if perms.emissions.add_newsitem %}
6 <a class="button" href="{% url 'newsitem-add' %}">Ajouter une nouvelle actu</a>
7 {% endif %}
8 {% endblock %}
9
10
11 {% block appbar %}
12 <h2>Actus</h2>
13 {% if user.is_staff %}
14 <span class="actions">
15 <a href="{% url 'emission-list' %}">Toutes les émissions</a>
16 <a href="{% url 'news-list' %}">Toutes les actus</a>
17 </span>
18 {% endif %}
19 {% endblock %}
20
21 {% block content %}
22
23 {% for category in object_list %}
24 <div class="section newsitems">
25 <h3>{{ category.title }}</h3>
26
27 <ul class="newsitem-list">
28 {% for newsitem in category.get_sorted_newsitems %}
29 <li><a href="{% url 'newsitem-view' slug=newsitem.slug %}">{{ newsitem.title }}</a></li>
30 {% endfor %}
31 </ul>
32
33 </div>
34 {% endfor %}
35
36 <div class="newsitems section">
37 <h3>Actus non rangées</h3>
38
39 <ul class="newsitem-list">
40 {% for newsitem in unsorted_newsitems %}
41 <li><a href="{% url 'newsitem-view' slug=newsitem.slug %}">{{ newsitem.title }}</a></li>
42 {% endfor %}
43 </ul>
44 </div>
45
46 {% endblock %}