changeset 1118:0219fafab7a6

Convert antispam to v3 design.
author Brian Neal <bgneal@gmail.com>
date Wed, 20 Jul 2016 21:03:00 -0500
parents dd57bacde961
children 837808b5dff3
files antispam/views.py sg101/templates/antispam/suspended.html
diffstat 2 files changed, 15 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/antispam/views.py	Wed Jul 20 20:54:36 2016 -0500
+++ b/antispam/views.py	Wed Jul 20 21:03:00 2016 -0500
@@ -11,4 +11,5 @@
 
     return render(request, 'antispam/suspended.html', {
         'is_active': is_active,
-        })
+        'V3_DESIGN': True,
+    })
--- a/sg101/templates/antispam/suspended.html	Wed Jul 20 20:54:36 2016 -0500
+++ b/sg101/templates/antispam/suspended.html	Wed Jul 20 21:03:00 2016 -0500
@@ -1,19 +1,20 @@
-{% extends 'base.html' %}
+{% extends 'v3/base.html' %}
 {% block title %}Account Suspension Status{% endblock %}
 {% block content %}
 <h2>Account Suspension Status</h2>
 {% if not is_active %}
-<p class="error">
-Your post has tripped our spam filter. Your account has been suspended pending
-a review of your post. If this was a mistake, we sincerely apologize and promise
-your account will be restored soon. We regret having to take this drastic measure, but
-the high volume of spam we recieve has forced us to take this action. If you have any
-questions, please feel to <a href="{% url 'contact-form' %}">contact us</a>.
-</p>
+   <div class="alert callout">
+   Your post has tripped our spam filter. Your account has been suspended pending
+   a review of your post. If this was a mistake, we sincerely apologize and promise
+   your account will be restored soon. We regret having to take this drastic measure, but
+   the high volume of spam we recieve has forced us to take this action. If you have any
+   questions, please feel to
+   <a href="{% url 'contact-form' %}?subject=Account%20suspension%20for%20spam">contact us</a>.
+   </div>
 {% else %}
-<p class="success">
-Your account has been restored and you should be able to make comments and forum
-posts. We apologize for any inconvenience.
-</p>
+   <div class="success callout">
+   Your account has been restored and you should be able to make comments and forum
+   posts. We apologize for any inconvenience.
+   </div>
 {% endif %}
 {% endblock %}