From 59b9260b28d330f89cb493a7c0ebfbf177be9e8c Mon Sep 17 00:00:00 2001 From: Yaroslsav-95 <contact@yaroslavps.com> Date: Mon, 8 Oct 2018 12:21:24 +0300 Subject: minor fixes --- weblog/templates/weblog/post.html | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'weblog/templates') diff --git a/weblog/templates/weblog/post.html b/weblog/templates/weblog/post.html index 7a7a09a..ec999c7 100755 --- a/weblog/templates/weblog/post.html +++ b/weblog/templates/weblog/post.html @@ -60,24 +60,22 @@ </div> {% endif %} {% endif %} - <div id="comment-section"> - {% for comment in comments %} - <div class="media"> - <div class="media-body"> - <h4 class="media-heading">{% if comment.author %}{{ comment.author.get_username }}{% else %}{% trans 'Anonymous' context 'Unauthenticated comment poster' %}{% endif %}</h4> - <p>{{ comment.content }}</p> - <p class="media-date">{{ comment.publish_date }}</p> - </div> + {% for comment in comments %} + <div class="media"> + <div class="media-body"> + <h4 class="media-heading">{% if comment.author %}{{ comment.author.get_username }}{% else %}{% trans 'Anonymous' context 'Unauthenticated comment poster' %}{% endif %}</h4> + <p>{{ comment.content }}</p> + <p class="media-date">{{ comment.publish_date }}</p> </div> - {% endfor %} - {% else %} - <div class="text-center"> - <br> - <h3>{% trans 'Nobody has left a comment on this post yet' %}</h3> </div> - {% endif %} + {% endfor %} + {% else %} + <div class="text-center"> + <br> + <h3>{% trans 'Nobody has left a comment on this post yet' %}</h3> </div> {% endif %} + {% endif %} </div> <script> function changeLang(lang){ -- cgit v1.2.3