From b8680d1de69535a8c10812fef44c15684501f0c5 Mon Sep 17 00:00:00 2001 From: Yaroslsav-95 Date: Mon, 8 Oct 2018 07:34:20 +0300 Subject: added publish date to comments, css for comments --- weblog/templates/weblog/post.html | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to 'weblog/templates') diff --git a/weblog/templates/weblog/post.html b/weblog/templates/weblog/post.html index b92d43c..7a7a09a 100755 --- a/weblog/templates/weblog/post.html +++ b/weblog/templates/weblog/post.html @@ -49,31 +49,34 @@ {% if comments %} {% if comment_submission %} {% if comment_submission_error %} -
- × +
+ {{ comment_submission_error }}
{% else %} -
- × +
+ {% trans 'Comment submited successfully' %}
{% endif %} {% endif %} - {% for comment in comments %} -
-
-

{% if comment.author %}{{ comment.author.get_username }}{% else %}{% trans 'Anonymous' context 'Unauthenticated comment poster' %}{% endif %}

-

{{ comment.content }}

+
+ {% for comment in comments %} +
+
+

{% if comment.author %}{{ comment.author.get_username }}{% else %}{% trans 'Anonymous' context 'Unauthenticated comment poster' %}{% endif %}

+

{{ comment.content }}

+

{{ comment.publish_date }}

+
+
+ {% endfor %} + {% else %} +
+
+

{% trans 'Nobody has left a comment on this post yet' %}

+ {% endif %}
- {% endfor %} - {% else %} -
-
-

{% trans 'Nobody has left a comment on this post yet' %}

-
- {% endif %} {% endif %}