Browse files

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

  • Loading branch information...
1 parent 1a0aae1 commit fc7e6a2c1f7538808f3e49415b29f4f57a17ab44 @jacobian jacobian committed Apr 1, 2013
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,13 +5,21 @@
<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 %}
{% block content %}
<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

0 comments on commit fc7e6a2

Please sign in to comment.