From ba4695dbdfcb96af70f9139ad279536d9398d29a Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Sun, 4 Nov 2012 11:52:42 -0500 Subject: Import static files from Thibaut's site --- templates/news/news_detail.html | 41 +++++++++++++++++++++++++++++++++++++++++ templates/news/news_list.html | 23 +++++++++++++++++++++++ templates/news/post.html | 8 ++++++++ 3 files changed, 72 insertions(+) create mode 100644 templates/news/news_detail.html create mode 100644 templates/news/news_list.html create mode 100644 templates/news/post.html (limited to 'templates/news') 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 %} 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 %} +
+ {% for news in news_list %} +
+

{{ news.title }}

+ +

Posté par {{ news.author.username }} le {{ news.date }}

+
+ +

{% with news.comment__count as comment_count %} + {{ comment_count }} commentaire{{comment_count|pluralize}} | + Ajouter un commentaire +

{% endwith %} + +
+ {{ news.text }} +
+ {% endfor %} +
+
+{% endblock %} diff --git a/templates/news/post.html b/templates/news/post.html new file mode 100644 index 0000000..56ad2e4 --- /dev/null +++ b/templates/news/post.html @@ -0,0 +1,8 @@ +{% extends 'base.html' %} + +{% block content %} + +{{ form.as_p }} + + +{% endblock %} -- cgit v1.2.3-70-g09d2