summaryrefslogtreecommitdiff
path: root/app/pages
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf>2021-02-12 09:11:38 -0500
committerluxagraf <sng@luxagraf>2021-02-12 09:11:38 -0500
commitb475a6e011b8f76ca65b0a7152ade0020927f701 (patch)
tree513067d87e560a83fd9c59097f02b05d9a9a7de6 /app/pages
parent2563990e8fa7e3fd55b9fb7a32de9d8032ac8782 (diff)
templates: fixed page detail comments and added cross promotion on
newsletter list pages
Diffstat (limited to 'app/pages')
-rw-r--r--app/pages/templates/pages/luxagraf/page_detail.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/pages/templates/pages/luxagraf/page_detail.html b/app/pages/templates/pages/luxagraf/page_detail.html
index fc66917..4029f24 100644
--- a/app/pages/templates/pages/luxagraf/page_detail.html
+++ b/app/pages/templates/pages/luxagraf/page_detail.html
@@ -19,12 +19,15 @@
{% 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%}
</main>
{% endblock %}