[Mpuls-commits] r3771 - base/trunk/mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 24 12:51:00 CEST 2010


Author: torsten
Date: 2010-09-24 12:50:59 +0200 (Fri, 24 Sep 2010)
New Revision: 3771

Modified:
   base/trunk/mpulsweb/templates/casemanagement/digest.mako
Log:
* mpulsweb/templates/casemanagement/digest.mako: Issue1121: Changed
	layout of digest a littlebit to add the duration in weeks to the
	casestateinfo.


Modified: base/trunk/mpulsweb/templates/casemanagement/digest.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/digest.mako	2010-09-23 16:09:32 UTC (rev 3770)
+++ base/trunk/mpulsweb/templates/casemanagement/digest.mako	2010-09-24 10:50:59 UTC (rev 3771)
@@ -127,6 +127,7 @@
         % endfor
       </td>
     </tr>
+    % endif
     <tr class="hl">
       <td class="label">${_('Start and Enddates')}</td>
       <td>
@@ -138,10 +139,12 @@
           % for phase in c.case.get_phaseslist():
             %  if phase.getStart().id in reachable or phase.getEnd().id in reachable:
               <li>
-                ${phase.description}: 
-                (${h.format_date(phase.getStart().date) | F.NA} 
-                ${_('until')} 
-                ${h.format_date(phase.getEnd().date) | F.NA})
+                ${phase.description}<br>
+                <span class="info">
+                ${_('Startdate')}: ${h.format_date(phase.getStart().date) | F.NA}<br>
+                ${_('Enddate')}: ${h.format_date(phase.getEnd().date) | F.NA}<br>
+                ${_('Duration in weeks:')}: ${h.timedelta_in_weeks(phase.getDuration()) | F.NA}
+                </span>
               </li>
             % endif
           % endfor
@@ -151,7 +154,6 @@
         % endif
       </td>
     </tr>
-    % endif
     ${self.renderCustomCaseStateInfo(c.case)}
   </table>
 </%def>



More information about the Mpuls-commits mailing list