aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news/news_list.html
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2012-11-04 11:52:42 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2012-11-04 11:52:42 -0500
commitba4695dbdfcb96af70f9139ad279536d9398d29a (patch)
tree070cce177f32a1f65767d07de843d86ed65d66a9 /templates/news/news_list.html
parent3f99773d4ea7d2fedaaf4660078d3318ce8ec28a (diff)
downloadfamille-flask-ba4695dbdfcb96af70f9139ad279536d9398d29a.tar.gz
Import static files from Thibaut's site
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 %}