[Mpuls-commits] r6107 - base/trunk/mpulsweb/templates

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 9 16:46:22 CEST 2012


Author: torsten
Date: 2012-10-09 16:46:22 +0200 (Tue, 09 Oct 2012)
New Revision: 6107

Modified:
   base/trunk/mpulsweb/templates/main.mako
Log:
Only show group and agency administration links if it is not an evaluation
server.


Modified: base/trunk/mpulsweb/templates/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/main.mako	2012-10-09 10:51:54 UTC (rev 6106)
+++ base/trunk/mpulsweb/templates/main.mako	2012-10-09 14:46:22 UTC (rev 6107)
@@ -186,19 +186,21 @@
               ${_('User')}
             </a>
           </li>
-          <li>
-            <a href="${h.url(controller='administration',
-                                 action='overviewUserGroups')}"
-               id="administrationOverviewUserGroups">
-              ${_('Usergroup')}
-            </a>
-          </li>
-          <li>
-            <a href="${h.url(controller='settings', action='index')}"
-               id="settings">
-              ${_('Settings')}
-            </a>
-          </li>
+          % if not g.mpuls_config.is_enabled('module', 'agency-overview'):
+            <li>
+              <a href="${h.url(controller='administration',
+                                   action='overviewUserGroups')}"
+                 id="administrationOverviewUserGroups">
+                ${_('Usergroup')}
+              </a>
+            </li>
+            <li>
+              <a href="${h.url(controller='settings', action='index')}"
+                 id="settings">
+                ${_('Settings')}
+              </a>
+            </li>
+          % endif
         </ul>
       </div>
     </div>



More information about the Mpuls-commits mailing list