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.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Tue, 14 Oct 2008 21:06:23 +0000
changeset 327 629cc34e37bf
parent 326 4a4474944dee
child 328 275a47dd0ac8
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
app/soc/templates/soc/base.html
--- 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">