From c007cb69dac6268e1dd4a772ea56623b0a01367c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 25 Oct 2018 14:42:17 +0000 Subject: pulled stats from base template, fix layout bug in comments templates --- design/templates/base.html | 3 +- design/templates/comments/posted.html | 16 +++++--- design/templates/comments/preview.html | 68 ++++++++++++++++++---------------- 3 files changed, 49 insertions(+), 38 deletions(-) (limited to 'design') diff --git a/design/templates/base.html b/design/templates/base.html index cd8a1c5..56eea92 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -82,6 +82,7 @@ {% block js %}{% endblock%} + {%comment%} - +{%endcomment%} diff --git a/design/templates/comments/posted.html b/design/templates/comments/posted.html index f4aee46..9a478cf 100644 --- a/design/templates/comments/posted.html +++ b/design/templates/comments/posted.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load i18n %} +{%block htmlclass%}class="detail"{%endblock%} {% block js %} {% endblock %} {% block primary %} -
-

Thank you for your comment

-

Unless you've previously been approved a few times, your comment will be moderated. If we're on the road this can sometimes take a few days, so please be patient.

-

Return to the page you came from Redirecting in 5

- -
+
+
+
+

Thank you for your comment

+
+

Unless you've previously been approved a few times, your comment will be moderated. If we're on the road this can sometimes take a few days, so please be patient.

+

Return to the page you came from Redirecting in 5

+
+
{% endblock %} diff --git a/design/templates/comments/preview.html b/design/templates/comments/preview.html index 58eba01..8129658 100644 --- a/design/templates/comments/preview.html +++ b/design/templates/comments/preview.html @@ -1,38 +1,44 @@ {% extends "base.html" %} {% load i18n %} +{%block htmlclass%} +class="detail"{%endblock%} {% block primary %} -
-

{% trans "Preview your comment" %}

- {% load comments %} -
{% csrf_token %} - {% if next %}
{% endif %} - {% if form.errors %} -

{% if form.errors|length == 1 %}{% trans "Please correct the error below" %}{% else %}{% trans "Please correct the errors below" %}{% endif %}

- {% else %} -
{{ comment|linebreaks }}
-

-

{% trans "Or make changes" %}:

-

- {% endif %} - {% for field in form %} - {% if field.is_hidden %} -
{{ field }}
- {% else %} - {% if field.errors %}{{ field.errors }}{% endif %} - - {% endif %} - {% endfor %} -

- - -

-
-
+
+
+
+

{% trans "Preview your comment" %}

+
+ {% load comments %} +
{% csrf_token %} + {% if next %}
{% endif %} + {% if form.errors %} +

{% if form.errors|length == 1 %}{% trans "Please correct the error below" %}{% else %}{% trans "Please correct the errors below" %}{% endif %}

+ {% else %} +
{{ comment|linebreaks }}
+

+

{% trans "Or make changes" %}:

+

+ {% endif %} + {% for field in form %} + {% if field.is_hidden %} +
{{ field }}
+ {% else %} + {% if field.errors %}{{ field.errors }}{% endif %} + + {% endif %} + {% endfor %} +

+ + +

+
+
+
{% endblock %} -- cgit v1.2.3