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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 15 17:41:54 CEST 2011


Author: bh
Date: 2011-09-15 17:41:54 +0200 (Thu, 15 Sep 2011)
New Revision: 5350

Modified:
   base/trunk/mpulsweb/templates/casemanagement/main.mako
Log:
Port link for the meta page in the main menu from WASKU.
The template code was copied from WASKU web revision 425:73012a984201.
In addition to the conditions alredy present in WASKU, the link will
only be generated if the meta-server support is enabled.


Modified: base/trunk/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/main.mako	2011-09-15 15:32:17 UTC (rev 5349)
+++ base/trunk/mpulsweb/templates/casemanagement/main.mako	2011-09-15 15:41:54 UTC (rev 5350)
@@ -110,6 +110,16 @@
                 </a>
             </li>
         % endif
+        % if g.mpuls_config.is_enabled('case-module', 'meta-server') and session.get('case').getState().getState() == 1 and h.hasRole(['cm']):
+        <li>
+          <a href="${h.url_for(controller='/meta', 
+                               action='index', 
+                               id=session.get('case').id)}" 
+                    onclick="return checkModification();">
+                    ${_('Meta case')}
+          </a>
+        </li>
+        % endif
       </ul>
     % endif
      </div>



More information about the Mpuls-commits mailing list