summaryrefslogtreecommitdiffstats
path: root/templates/news/news_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/news/news_list.html')
-rw-r--r--templates/news/news_list.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/news/news_list.html b/templates/news/news_list.html
new file mode 100644
index 0000000..2119a68
--- /dev/null
+++ b/templates/news/news_list.html
@@ -0,0 +1,23 @@
+{% extends 'base.html' %}
+
+{% block content %}
+<div class="news">
+ {% for news in news_list %}
+ <div class="news_head">
+ <h2><a href="{% url news-details pk=news.id %}">{{ news.title }}</a></h2>
+ <!--div style="float:right"><a href="/home/edit/id/<?=$news['ident']?>">Modifier cette actualité</a></div-->
+ <p>Posté par <a href="/user/view/name/<?=$news['name']?>">{{ news.author.username }}</a> le {{ news.date }}</p>
+ </div>
+
+ <p class="comments">{% with news.comment__count as comment_count %}
+ <a href="{% url news-details pk=news.id %}#comment">{{ comment_count }} commentaire{{comment_count|pluralize}}</a> |
+ <a href="{% url news-details pk=news.id %}#add">Ajouter un commentaire</a>
+ </p>{% endwith %}
+
+ <div class="news_content">
+ {{ news.text }}
+ </div>
+ {% endfor %}
+</div>
+<div style="clear:both"/>
+{% endblock %}