Commit 085971bd authored by fred's avatar fred

style newsitem lists

parent cf39276e
......@@ -11,7 +11,14 @@
{% block content %}
<h2>Actus</h2>
{% if perms.emissions.add_newsitem %}
<p>
<a class="big-friendly-button" href="{% url 'newsitem-add' %}">Ajouter une actu</a>
</p>
{% endif %}
{% for category in object_list %}
<div class="newsitems">
<h3>{{ category.title }}</h3>
<ul class="newsitem-list">
......@@ -20,8 +27,11 @@
{% endfor %}
</ul>
<hr/>
</div>
{% endfor %}
<div class="newsitems">
<h3>Actus non rangées</h3>
<ul class="newsitem-list">
......@@ -29,5 +39,6 @@
<li><a href="{% url 'newsitem-view' slug=newsitem.slug %}">{{ newsitem.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment