From d6655d4957b9e1654d1bfe262d093120def254ee Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Fri, 17 Feb 2012 09:39:46 -0800 Subject: Initial commmit. --- templates/news/news_detail.html | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 templates/news/news_detail.html (limited to 'templates/news/news_detail.html') diff --git a/templates/news/news_detail.html b/templates/news/news_detail.html new file mode 100644 index 0000000..f65b91e --- /dev/null +++ b/templates/news/news_detail.html @@ -0,0 +1,41 @@ +{% extends 'base.html' %} + +{% block content %} +{% with news.comment_set.all as comments %} +
+

Détails

+
+ +
+

{{news.title}}

+ +
+{{news.text}} +
+ +
+ +

Commentaires

+{% for comment in comments %} +

Posté par {{comment.author}} le {{comment.date}}

+
+{{comment.text}} +
+{% endfor %} + +

Ajouter un commentaire

+ +
+ + +

+
+ +
+{% endwith %} +{% endblock %} -- cgit v1.3