[Mpuls-commits] r1745 - wasko/branches/2.0/mpulsweb/templates/phase

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 24 12:52:26 CET 2010


Author: torsten
Date: 2010-02-24 12:52:26 +0100 (Wed, 24 Feb 2010)
New Revision: 1745

Modified:
   wasko/branches/2.0/mpulsweb/templates/phase/phase.mako
Log:
* mpulsweb/templates/phase/phase.mako: Print some info about the phases. Are they already finished, currently running, not yet started.


Modified: wasko/branches/2.0/mpulsweb/templates/phase/phase.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/phase/phase.mako	2010-02-24 11:51:01 UTC (rev 1744)
+++ wasko/branches/2.0/mpulsweb/templates/phase/phase.mako	2010-02-24 11:52:26 UTC (rev 1745)
@@ -32,7 +32,16 @@
     <% p1, p2 = phase.getStart(), phase.getEnd()  %>
     <tr class="${(num%2) and 'hl' or ''}">
       <td rowspan="2" class="cm_phase_state">
-        ${phase.getDescription()}
+        ${phase.getDescription()}<br>
+        % if p1.is_active():
+          ${_('Running')}
+        % elif p2.is_active():
+          ${_('Finished')}
+        % elif (c.phases.get_current_phase_id() > p2.id) or (c.phases.get_current_phase_id() > p1.id):
+          ${_('Finished')}
+        % else:
+          ${_('Not yet started')}
+        % endif
       </td>
       % if p1.is_ok():
       <td class="cm_phase_state_valid cm_phase_state"></td>



More information about the Mpuls-commits mailing list