[Mpuls-commits] r5948 - base/trunk/mpulsweb/templates/phase

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 26 13:21:16 CEST 2012


Author: ludwig
Date: 2012-04-26 13:21:15 +0200 (Thu, 26 Apr 2012)
New Revision: 5948

Modified:
   base/trunk/mpulsweb/templates/phase/phase.mako
Log:
Issue 1012: Changed phase overview table coloring. 
Now only displayed phases count for the background color change.


Modified: base/trunk/mpulsweb/templates/phase/phase.mako
===================================================================
--- base/trunk/mpulsweb/templates/phase/phase.mako	2012-04-25 10:32:16 UTC (rev 5947)
+++ base/trunk/mpulsweb/templates/phase/phase.mako	2012-04-26 11:21:15 UTC (rev 5948)
@@ -32,7 +32,8 @@
       </tr>
       <% phases_are_valid = c.phases.is_valid() %>
       <% current_phase = c.phases.get_current_phase_id() %>
-      % for num, phase in enumerate(c.phases): 
+      <% num = 0 %>
+      % for phase in c.phases: 
       <% if phase.id == "-1" and g.mpuls_config.is_enabled('phases', 'hideunknown'): continue  %>
 
       <% p1, p2 = phase.getStart(), phase.getEnd()  %>
@@ -139,6 +140,7 @@
             </td>
           % endif
         </tr>
+        <% num = num +1 %>
       % endif
       % endfor
     </table>



More information about the Mpuls-commits mailing list