[Mpuls-commits] r4576 - base/trunk/mpulsweb/templates/administration

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 4 14:03:34 CET 2011


Author: torsten
Date: 2011-02-04 14:03:33 +0100 (Fri, 04 Feb 2011)
New Revision: 4576

Modified:
   base/trunk/mpulsweb/templates/administration/overview_user.mako
Log:
* mpulsweb/templates/administration/overview_user.mako: Do not show
	icons for roles, because labeling can change.


Modified: base/trunk/mpulsweb/templates/administration/overview_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/overview_user.mako	2011-02-04 12:03:26 UTC (rev 4575)
+++ base/trunk/mpulsweb/templates/administration/overview_user.mako	2011-02-04 13:03:33 UTC (rev 4576)
@@ -24,7 +24,7 @@
   <tr>
     <th class="table_header_h table_width_mid">${_('adm_overview_tbl_header_lastname')}</th>
     <th class="table_header_h table_width_mid">${_('adm_overview_tbl_header_firstname')}</th>
-    <th class="table_header_h table_width_mid_s">${_('adm_overview_tbl_header_role')}</th>
+    <th class="table_header_h ">${_('adm_overview_tbl_header_role')}</th>
     <th class="table_header_h table_width_mid_s">${_('adm_overview_tbl_header_actions')}</th>
   </tr>
   <% idset = 0 %>
@@ -39,11 +39,12 @@
        % endif
          <td><a href="${h.url_for(controller='/administration', action='showUser', id=user.id)}">${user.last_name| F.NA}</a></td>
          <td><a href="${h.url_for(controller='/administration', action='showUser', id=user.id)}">${user.first_name| F.NA}</a></td>
-         % if user.getRole() == 'Admin':
-         <td><img src="${h.url_for('/images/icons/admin_grey_tag.gif')}" alt="${_('Role Administrator')}" title="${_('Role Administrator')}"></td>
-         % else:
-           <td><img src="${h.url_for('/images/icons/cm_grey_tag_width.gif')}" alt="${_('Role Case Manager')}" title="${_('Role Case Manager')}"></td>
-         % endif
+         ##% if user.getRole() == 'Admin':
+         ##<td><img src="${h.url_for('/images/icons/admin_grey_tag.gif')}" alt="${_('Role Administrator')}" title="${_('Role Administrator')}"></td>
+         ##% else:
+         ##  <td><img src="${h.url_for('/images/icons/cm_grey_tag_width.gif')}" alt="${_('Role Case Manager')}" title="${_('Role Case Manager')}"></td>
+         ##% endif
+         <td>${user.getRole()}</td>
          <td>
            <a href="${h.url_for(controller='/administration', action='showUser', id=user.id)}"><img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
            % if str(user.id) != str(session.get('USER_AUTHORIZED').id):



More information about the Mpuls-commits mailing list