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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Dec 1 10:36:44 CET 2011


Author: ludwig
Date: 2011-12-01 10:36:43 +0100 (Thu, 01 Dec 2011)
New Revision: 5676

Modified:
   base/trunk/mpulsweb/templates/main.mako
Log:
Issue 2713: If module administration is not enabled, hide name setting link.
The my account should not be accessible in this case, so the page doesn't
use a link.


Modified: base/trunk/mpulsweb/templates/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/main.mako	2011-11-30 13:46:58 UTC (rev 5675)
+++ base/trunk/mpulsweb/templates/main.mako	2011-12-01 09:36:43 UTC (rev 5676)
@@ -3,13 +3,22 @@
 <%def name="buildStatusBar()">
   <div id="statusbar">
     ${_('Login as')}:
+    % if g.mpuls_config.is_enabled('module', 'administration'):
         <a href="${h.url_for(controller='/usersettings', action='showSettings')}"
            title="${_('My Account')}"
            onclick="return checkModification();">
+    % endif
     % if h.getLogin() != 'adm':
-        <strong>${h.getUserFullname()}</strong></a> (${h.getRole()})
+        <strong>${h.getUserFullname()}</strong>
+	% if g.mpuls_config.is_enabled('module', 'administration'):
+          </a>
+        % endif
+	(${h.getRole()})
     % else:
-        <strong>${h.getUserLastname()}</strong></a>
+        <strong>${h.getUserLastname()}</strong>
+	% if g.mpuls_config.is_enabled('module', 'administration'):
+          </a>
+        % endif
     % endif
   </div>
 </%def>



More information about the Mpuls-commits mailing list