summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-09-12 21:39:09 -0400
committerluxagraf <sng@luxagraf.net>2021-09-12 21:39:09 -0400
commitcd5e05d5632a69a9c44066fdacbc25ff88c24fb7 (patch)
tree1d52194150dcf06cbe8d259212657ea08efbcd0e
parentd6ad109a3f98aa47ad808a84c5979e40d95bf731 (diff)
posts: fixed a bug in essay template
-rw-r--r--app/posts/templates/posts/essay_detail.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/posts/templates/posts/essay_detail.html b/app/posts/templates/posts/essay_detail.html
index c4d2b66..adc4331 100644
--- a/app/posts/templates/posts/essay_detail.html
+++ b/app/posts/templates/posts/essay_detail.html
@@ -113,19 +113,21 @@
<h5>If you enjoyed this, you should join the mailing&nbsp;list&hellip;</h5>
{% include 'mailing_list.html' %}
</div> {% endcomment %}
- </main>
{% if object.enable_comments %}
{% get_comment_count for object as comment_count %}
{%if comment_count > 0 %}
-<p class="comments--header">{{comment_count}} Comment{{ comment_count|pluralize }}</p>
+<div class="comment-wrapper">
+<p class="comments-header">{{comment_count}} Comment{{ comment_count|pluralize }}</p>
{% render_comment_list for object %}
{%endif%}
-<div class="comment--form--wrapper {%if comment_count > 0%}comment-form-border{%endif%}">
+<div class="comment-form-wrapper {%if comment_count > 0%}comment-form-border{%endif%}">
{% render_comment_form for object %}
</div>
{% else %}
<p class="comments--header" style="text-align: center">Sorry, comments have been disabled for this post.</p>
{%endif%}
+</div>
+</main>
{% endblock %}
{% block js %}
<script src="/media/js/leaflet-master/leaflet-mod.js"></script>