Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tweaks to the success message (style, actually display it, content).

  • Loading branch information...
commit fc7e6a2c1f7538808f3e49415b29f4f57a17ab44 1 parent 1a0aae1
@jacobian jacobian authored
Showing with 9 additions and 1 deletion.
  1. +1 −1  contact/views.py
  2. +8 −0 templates/code_of_conduct.html
View
2  contact/views.py
@@ -17,5 +17,5 @@ def contact_coc(request):
template_name = 'contact/coc.html',
success_url = urlresolvers.reverse('code_of_conduct'))
if isinstance(resp, HttpResponseRedirect):
- messages.success(request, "Thanks for your feedback! If you provided an email address, we'll get back to you shortly.")
+ messages.success(request, "Thanks for your feedback! If you provided an email address, we'll get back to you.")
return resp
View
8 templates/code_of_conduct.html
@@ -5,6 +5,10 @@
<style type="text/css">
h2 a, h3 a { display: none; }
h2:hover a, h3:hover a { display: inline; }
+ p.message {
+ background-color: #ffe761;
+ padding: 8px;
+ }
</style>
{% endblock extrahead %}
@@ -12,6 +16,10 @@
<h1>Django Code of Conduct - DRAFT</h1>
+{% for message in messages %}
+ <p class="message">{{ message }}</p>
+{% endfor %}
+
<h2 class="deck">
You're looking at a draft Code of Conduct proposed for adoption by the
Django core team and the Django Software Foundation. Think of this as a
Please sign in to comment.
Something went wrong with that request. Please try again.