aboutsummaryrefslogtreecommitdiffstats
path: root/templates/news/show.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/news/show.html')
-rw-r--r--templates/news/show.html5
1 files changed, 4 insertions, 1 deletions
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 @@
<hr/>
<h2 id="comments">Commentaires</h2>
+{% if not comments %}
+Pas de commentaires pour l'instant.
+{% endif %}
{% for comment in comments %}
<h3 class="comment">
- Posté par <a href="{{url_for('view_user', comment.user_name)}}">{{comment.user_name}}</a> le {{comment.date|format_date}}
+ Posté par <a href="{{url_for('view_user', user_id=comment.user_id)}}">{{comment.user_name}}</a> le {{comment.date|format_date}}
</h3>
<div class="comment_content"/>
{{comment.content_cache|safe}}