aboutsummaryrefslogtreecommitdiff
path: root/weblog/templates
diff options
context:
space:
mode:
authorYaroslsav-95 <contact@yaroslavps.com>2018-10-08 07:34:20 +0300
committerYaroslsav-95 <contact@yaroslavps.com>2018-10-08 07:34:20 +0300
commitb8680d1de69535a8c10812fef44c15684501f0c5 (patch)
tree1974cb22fe89caec4bb20cf238f8b0ea5e74fd42 /weblog/templates
parent246dd98e40436371ff9a96f5cf68a5c496a60153 (diff)
downloadw3blog-b8680d1de69535a8c10812fef44c15684501f0c5.tar.gz
w3blog-b8680d1de69535a8c10812fef44c15684501f0c5.zip
added publish date to comments, css for comments
Diffstat (limited to 'weblog/templates')
-rwxr-xr-xweblog/templates/weblog/post.html35
1 files changed, 19 insertions, 16 deletions
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 %}
- <div class="alert alert-danger alert-dismissable">
- <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
+ <div class="alert alert-error">
+ <!--<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>-->
{{ comment_submission_error }}
</div>
{% else %}
- <div class="alert alert-success alert-dismissable">
- <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
+ <div class="alert alert-success">
+ <!--<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>-->
{% trans 'Comment submited successfully' %}
</div>
{% endif %}
{% endif %}
- {% 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>
+ <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>
+ </div>
+ {% endfor %}
+ {% else %}
+ <div class="text-center">
+ <br>
+ <h3>{% trans 'Nobody has left a comment on this post yet' %}</h3>
</div>
+ {% endif %}
</div>
- {% endfor %}
- {% else %}
- <div class="text-center">
- <br>
- <h3>{% trans 'Nobody has left a comment on this post yet' %}</h3>
- </div>
- {% endif %}
{% endif %}
</div>
<script>