[Mpuls-commits] r3495 - in base/trunk: . mpulsweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Aug 31 15:33:02 CEST 2010


Author: bh
Date: 2010-08-31 15:33:01 +0200 (Tue, 31 Aug 2010)
New Revision: 3495

Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/templates/casemanagement/caselist.mako
Log:
* mpulsweb/templates/casemanagement/caselist.mako: Do not add
/case/select/ID links for cases that have been anonymized.


Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-08-31 13:21:40 UTC (rev 3494)
+++ base/trunk/ChangeLog	2010-08-31 13:33:01 UTC (rev 3495)
@@ -1,5 +1,10 @@
 2010-08-31  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/templates/casemanagement/caselist.mako: Do not add
+	/case/select/ID links for cases that have been anonymized.
+
+2010-08-31  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/templates/casemanagement/search.mako: Do not hide
 	search options for "Responsibility" and "Status" in simple search
 	mode.

Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-08-31 13:21:40 UTC (rev 3494)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-08-31 13:33:01 UTC (rev 3495)
@@ -92,8 +92,12 @@
   % endif
   % for title, urlpart, style, roles, get_value in fields:
     % if h.hasRole(roles):
-     <td><a href="${h.url_for(controller='/case', action='select',
-                              id=case.id, confirmed=0)}">${get_value(case) | F.NA}</a></td>
+      % if case.getState().getState() != 5:
+        <td><a href="${h.url_for(controller='/case', action='select',
+                                 id=case.id, confirmed=0)}">${get_value(case) | F.NA}</a></td>
+      % else:
+        <td>${get_value(case) | F.NA}</td>
+      % endif
     % endif
   % endfor
   <td>



More information about the Mpuls-commits mailing list