summaryrefslogtreecommitdiffstats
path: root/templates/news/news_list.html
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-02-17 09:39:46 -0800
committerThibaut Horel <thibaut.horel@gmail.com>2012-02-17 09:39:46 -0800
commitd6655d4957b9e1654d1bfe262d093120def254ee (patch)
treeeffe7dcb8f771f2c026fff9d067fb74c4ca84a56 /templates/news/news_list.html
downloadfamille-django-master.tar.gz
Initial commmit.HEADmaster
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 %}