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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Nov 21 13:52:57 CET 2011


Author: ludwig
Date: 2011-11-21 13:52:57 +0100 (Mon, 21 Nov 2011)
New Revision: 5631

Modified:
   base/trunk/mpulsweb/templates/casemanagement/digest.mako
Log:
Issue 2672: Modify the reminders of a case so that they match the black board
reminders. Fixes the old and finished case display.


Modified: base/trunk/mpulsweb/templates/casemanagement/digest.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/digest.mako	2011-11-18 22:33:42 UTC (rev 5630)
+++ base/trunk/mpulsweb/templates/casemanagement/digest.mako	2011-11-21 12:52:57 UTC (rev 5631)
@@ -58,7 +58,7 @@
     ${self.buildModusfield()}
   </div>
   % if not c.print_version:
-    % if c.daysToMaxSavetime <= 0:
+    % if (c.finished and c.daysToMaxSavetime < 0) or (not c.finished and c.daysToMaxSavetime <= 0):
       <div class="dialog">
         % if c.finished:
           <h1>
@@ -74,7 +74,8 @@
             ${abs(c.daysToMaxSavetime)} Tagen überschritten!
             <strong>Es wird empfohlen, die Fallakte zu anonymisieren!</strong>
           </p>
-        % else:
+        % endif
+        % if not c.finished:
           <h1>
             <img src="${h.url_for('/images/icons/info/question.png')}" 
                  alt="${_('attention')}"



More information about the Mpuls-commits mailing list