[Mpuls-commits] r4106 - in jmd/trunk: jmdstrukturweb/templates jmdweb/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 3 12:48:59 CET 2010


Author: torsten
Date: 2010-11-03 12:48:58 +0100 (Wed, 03 Nov 2010)
New Revision: 4106

Modified:
   jmd/trunk/jmdstrukturweb/templates/main.mako
   jmd/trunk/jmdweb/templates/main.mako
Log:
Only show administration links if administrion is enabled.


Modified: jmd/trunk/jmdstrukturweb/templates/main.mako
===================================================================
--- jmd/trunk/jmdstrukturweb/templates/main.mako	2010-11-03 11:45:42 UTC (rev 4105)
+++ jmd/trunk/jmdstrukturweb/templates/main.mako	2010-11-03 11:48:58 UTC (rev 4106)
@@ -155,7 +155,7 @@
       </div>
     </div>
   % endif
-  % if h.hasRole(['admin_ka']):
+  % if h.hasRole(['admin_ka']) and g.mpuls_config.is_enabled('module', 'administration'):
     <div class="menu">
       <div class="actions">
         <h1>${_('menu_header_adm')}</h1>

Modified: jmd/trunk/jmdweb/templates/main.mako
===================================================================
--- jmd/trunk/jmdweb/templates/main.mako	2010-11-03 11:45:42 UTC (rev 4105)
+++ jmd/trunk/jmdweb/templates/main.mako	2010-11-03 11:48:58 UTC (rev 4106)
@@ -169,7 +169,7 @@
       </div>
     </div>
   % endif
-  % if h.hasRole(['admin_ka']):
+  % if h.hasRole(['admin_ka']) and g.mpuls_config.is_enabled('module', 'administration'):
     <div class="menu">
       <div class="actions">
         <h1>${_('menu_header_adm')}</h1>



More information about the Mpuls-commits mailing list