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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jun 10 12:08:52 CEST 2010


Author: torsten
Date: 2010-06-10 12:08:51 +0200 (Thu, 10 Jun 2010)
New Revision: 2967

Modified:
   base/trunk/mpulsweb/templates/casemanagement/caselist.mako
Log:
* mpulsweb/templates/casemanagement/caselist.mako: Only show anonyization-actions if anonymization is enabled.


Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-06-10 10:08:04 UTC (rev 2966)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-06-10 10:08:51 UTC (rev 2967)
@@ -251,14 +251,16 @@
              height = "22"></a>
     % endif
     % if case.getState().getState() == 4:
-      <a href="${h.url_for(controller='case', action='anonymize', id=case.id,
-                           confirmed=0)}">
-        <img src    = "${h.url_for('/images/icons/anonymise_active_22.png')}"
-             border = "0"
-             alt    = "${_('cm_overview_a_anonymize')}"
-             title  = "${_('cm_overview_a_anonymize')}"
-             width  = "22"
-             height = "22"></a>
+      % if g.mpuls_config.is_enabled('case-module', 'anonymize'):
+        <a href="${h.url_for(controller='case', action='anonymize', id=case.id,
+                             confirmed=0)}">
+          <img src    = "${h.url_for('/images/icons/anonymise_active_22.png')}"
+               border = "0"
+               alt    = "${_('cm_overview_a_anonymize')}"
+               title  = "${_('cm_overview_a_anonymize')}"
+               width  = "22"
+               height = "22"></a>
+      % endif
     % endif
     % if case.getState().getState() in (3, 4):
       <a href="${h.url_for(controller='case', action='restore', id=case.id, 
@@ -271,15 +273,17 @@
              height = "22"></a>
     % endif
   % elif h.hasRole(['cm_ka']) and case.getState().getState() in (1, 2):
-    <a href="${h.url_for(controller='case', 
-                         action='markForAnonymizeFromOverview', id=case.id,
-                         confirmed=0)}">
-      <img src    = "${h.url_for('/images/icons/anonymise_active_22.png')}" 
-           border = "0"
-           alt    = "${_('cm_overview_a_anonymize')}"
-           title  = "${_('cm_overview_a_anonymize')}"
-           width  = "22"
-           height = "22"></a>
+    % if g.mpuls_config.is_enabled('case-module', 'anonymize'):
+      <a href="${h.url_for(controller='case', 
+                           action='markForAnonymizeFromOverview', id=case.id,
+                           confirmed=0)}">
+        <img src    = "${h.url_for('/images/icons/anonymise_active_22.png')}" 
+             border = "0"
+             alt    = "${_('cm_overview_a_anonymize')}"
+             title  = "${_('cm_overview_a_anonymize')}"
+             width  = "22"
+             height = "22"></a>
+    % endif
     <a href="${h.url_for(controller='case', action='markForDelete', id=case.id,
                          confirmed=0)}">
       <img src    = "${h.url_for('/images/icons/delete_active_22.png')}" 



More information about the Mpuls-commits mailing list