diff options
author | Yaroslsav-95 <contact@yaroslavps.com> | 2018-10-08 12:21:24 +0300 |
---|---|---|
committer | Yaroslsav-95 <contact@yaroslavps.com> | 2018-10-08 12:21:24 +0300 |
commit | 59b9260b28d330f89cb493a7c0ebfbf177be9e8c (patch) | |
tree | 888dd6da911ccdd273e84431b484736b4b4d12aa /weblog/templates | |
parent | 7851ef3fd924987468b377b890cb37962805e6dc (diff) | |
download | w3blog-59b9260b28d330f89cb493a7c0ebfbf177be9e8c.tar.gz w3blog-59b9260b28d330f89cb493a7c0ebfbf177be9e8c.zip |
minor fixes
Diffstat (limited to 'weblog/templates')
-rwxr-xr-x | weblog/templates/weblog/post.html | 26 |
1 files changed, 12 insertions, 14 deletions
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){ |