Permalink
Browse files

Place general messages before the content.

  • Loading branch information...
1 parent 33f1611 commit a3704418fcacbb2d1161c684ecce4bf50a82f38d @julen julen committed Mar 25, 2012
Showing with 14 additions and 14 deletions.
  1. +14 −14 templates/base.html
View
@@ -129,6 +129,20 @@
{% block innernav %}{% endblock %}
</div><!-- precontent -->
+ {% if message or error_message or messages %}
+ <div class="form message{% if error_message %} error{% endif %}" lang="{{ LANGUAGE_CODE }}">
+ {% block message %}
+ <div class="info">{{ message }}</div>
+ <div class="error">{{ error_message }}</div>
+ {% for msg in messages %}
+ <p class="info">
+ {{ msg }}
+ </p>
+ {% endfor %}
+ {% endblock message %}
+ </div>
+ {% endif %}
+
<div id="content">
{% block content %}{% endblock %}
</div><!-- content -->
@@ -139,20 +153,6 @@
{% block extra_content %}{% endblock %}
</div> <!--body-->
- {% if message or error_message or messages %}
- <div class="form message{% if error_message %} error{% endif %}" lang="{{ LANGUAGE_CODE }}">
- {% block message %}
- <div class="info">{{ message }}</div>
- <div class="error">{{ error_message }}</div>
- {% for msg in messages %}
- <p class="info">
- {{ msg }}
- </p>
- {% endfor %}
- {% endblock message %}
- </div>
- {% endif %}
-
{% block footer %}
<div id="footer" lang="{{ LANGUAGE_CODE }}">
<ul class="nav">

0 comments on commit a370441

Please sign in to comment.