diff options
author | luxagraf <sng@luxagraf.net> | 2019-11-09 20:42:41 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-11-09 20:42:41 -0500 |
commit | 69f343a831639b1a4e51a832c2e3ce3ad86534c1 (patch) | |
tree | b89b40d0ab154edbbac6088e450cbebaf97f3ce8 /design/templates | |
parent | 11b2a604c965badef0de64c9f6e6becab455015b (diff) |
added new style comment form to detail pages
Diffstat (limited to 'design/templates')
-rw-r--r-- | design/templates/details/page.html | 2 | ||||
-rw-r--r-- | design/templates/essays/essay_detail.html | 2 | ||||
-rw-r--r-- | design/templates/src/post_detail.html | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/design/templates/details/page.html b/design/templates/details/page.html index a98f1c4..bb80a72 100644 --- a/design/templates/details/page.html +++ b/design/templates/details/page.html @@ -27,7 +27,9 @@ <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%}"> {% render_comment_form for object %} +</div> {%endif%} </main> {% endblock %} diff --git a/design/templates/essays/essay_detail.html b/design/templates/essays/essay_detail.html index 1ef602a..9f8c97b 100644 --- a/design/templates/essays/essay_detail.html +++ b/design/templates/essays/essay_detail.html @@ -96,7 +96,9 @@ <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%}"> {% 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%} diff --git a/design/templates/src/post_detail.html b/design/templates/src/post_detail.html index 0b80635..fb1bde0 100644 --- a/design/templates/src/post_detail.html +++ b/design/templates/src/post_detail.html @@ -68,7 +68,9 @@ <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%}"> {% 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%} |