Move <div id='notice'> into notice block in base.html template. Change formatting of notice block to make it much easier to "parse" visually. This patch is based on comments to r722.
http://code.google.com/p/soc/source/detail?r=722
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/soc/templates/soc/base.html Tue Oct 14 21:02:28 2008 +0000
+++ b/app/soc/templates/soc/base.html Tue Oct 14 21:06:23 2008 +0000
@@ -58,9 +58,24 @@
<div id="breadcrumbs">
{% block breadcrumbs %}{% endblock %}
</div>
+
+ {% block notice %}
<div id="notice">
- {% block notice %}{% if notice %}<table align="center"><tr><td><div class="notice"><div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr"> <div style="padding: 5px 10px;"><b>{{ notice }}</b></div></div></div></div></div></div><td></tr></table>{% endif %}
- {% endblock %}</div>
+ {% if notice %}
+ <table align="center">
+ <tr>
+ <td>
+ <div class="notice">
+ <div class="rounded_ul"><div class="rounded_ur"><div class="rounded_ll"><div class="rounded_lr">
+ <div style="padding: 5px 10px;"><b>{{ notice }}</b></div>
+ </div></div></div></div>
+ </div>
+ <td>
+ </tr>
+ </table>
+ {% endif %}
+ </div>
+ {% endblock %}
</div>
<div id="side" dir="ltr">