From 9b2f907dfffd92b6f236d73cc5d0c3b9fb92cc53 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 7 Nov 2012 23:38:09 -0500 Subject: fixed up the comment system --- templates/news/list.html | 10 +++++++--- templates/news/show.html | 5 ++++- 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/news/list.html b/templates/news/list.html index c7ea740..b2bee8a 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -11,13 +11,17 @@ {% if news.user_name==session.user_name %}
- Modifier cette actualité + Modifier cette actualité
{% endif %} -

Posté par {{ news.user_name }} le {{news.date|format_date}}

+

Posté par {{ news.user_name }} le {{news.date|format_date}}

+

+ {{news.ncomments|pluralize}}| + Ajouter un commentaire +

- {{ news.content_cache|safe }} +

{{ news.content_cache|safe }}

{% endfor %} diff --git a/templates/news/show.html b/templates/news/show.html index 782b0a4..dcc4e4a 100644 --- a/templates/news/show.html +++ b/templates/news/show.html @@ -18,9 +18,12 @@

Commentaires

+{% if not comments %} +Pas de commentaires pour l'instant. +{% endif %} {% for comment in comments %}

- Posté par {{comment.user_name}} le {{comment.date|format_date}} + Posté par {{comment.user_name}} le {{comment.date|format_date}}

{{comment.content_cache|safe}} -- cgit v1.2.3-70-g09d2