summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--design/sass/_comments.scss4
-rw-r--r--design/templates/comments/form.html3
-rw-r--r--design/templates/jrnl/entry_detail.html2
3 files changed, 6 insertions, 3 deletions
diff --git a/design/sass/_comments.scss b/design/sass/_comments.scss
index a7c68be..39c7930 100644
--- a/design/sass/_comments.scss
+++ b/design/sass/_comments.scss
@@ -75,7 +75,6 @@
.comment--form--wrapper {
@include constrain_narrow();
- border-top: 3px double #efefef;
p {
font-family: $fancy_serif;
}
@@ -103,6 +102,9 @@
left: 1.2rem !important;
}
}
+.comment-form-border{
+ border-top: 3px double #efefef;
+}
.comment--form--header {
margin-top: 2em;
.hed {
diff --git a/design/templates/comments/form.html b/design/templates/comments/form.html
index d7e5ee3..eaebada 100644
--- a/design/templates/comments/form.html
+++ b/design/templates/comments/form.html
@@ -1,5 +1,4 @@
{% load comments i18n %}
-<div class="comment--form--wrapper">
<div class="comment--form--header">
<p class="hed">Thoughts?</p>
<p class="subhed">Please leave a reply:</p>
@@ -23,4 +22,4 @@
</div>
</form>
<p style="font-size: 95%;"><strong>All comments are moderated</strong>, so you won&#8217;t see it right away. And please remember Kurt Vonnegut's rule: &#8220;god damn it, you&#8217;ve got to be kind.&#8221; You can use Markdown or HTML to format your comments. The allowed tags are <code>&lt;b&gt;, &lt;i&gt;, &lt;em&gt;, &lt;strong&gt;, &lt;a&gt;</code>. To create a new paragraph hit return twice. </p>
-</div>
+
diff --git a/design/templates/jrnl/entry_detail.html b/design/templates/jrnl/entry_detail.html
index fd7e05a..b676ba5 100644
--- a/design/templates/jrnl/entry_detail.html
+++ b/design/templates/jrnl/entry_detail.html
@@ -156,7 +156,9 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i
<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%}