[pypy-commit] buildbot buildbot-0.8.7: add an alert box to the template

bivab noreply at buildbot.pypy.org
Mon Apr 29 11:01:59 CEST 2013


Author: David Schneider <david.schneider at picle.org>
Branch: buildbot-0.8.7
Changeset: r806:8fd9b1250f55
Date: 2013-04-26 21:07 +0200
http://bitbucket.org/pypy/buildbot/changeset/8fd9b1250f55/

Log:	add an alert box to the template

diff --git a/master/templates/layout.html b/master/templates/layout.html
--- a/master/templates/layout.html
+++ b/master/templates/layout.html
@@ -20,9 +20,9 @@
   </head>
   <body class="interface">
     {% block header -%}
-    <div class="header">    
+    <div class="header">
         <a href="{{ path_to_root or '.' }}">Home</a>
-        - 
+        -
         <!-- PyPy specific items -->
         <a href="http://speed.pypy.org/">Speed</a>
         <a href="{{ path_to_root }}summary?branch=<trunk>">Summary (trunk)</a>
@@ -46,13 +46,19 @@
     {%- block barecontent -%}
     <hr/>
 
+    {% if alert_msg != '' %}
+    <div class="alert">
+        {{alert_msg}}
+    </div>
+    {% endif %}
+
     <div class="content">
-      {%- block content -%}     
+      {%- block content -%}
       {%- endblock -%}
     </div>
     {%- endblock -%}
 
-    {%- block footer -%} 
+    {%- block footer -%}
     <div class="footer" style="clear:both">
       <hr/>
       <a href="http://buildbot.net/">BuildBot</a> ({{version}})


More information about the pypy-commit mailing list