%if not global_permissions_template:
-
diff --git a/rhodecode/templates/base/perms_summary.mako b/rhodecode/templates/base/perms_summary.mako
--- a/rhodecode/templates/base/perms_summary.mako
+++ b/rhodecode/templates/base/perms_summary.mako
@@ -2,14 +2,15 @@
## usage:
## <%namespace name="p" file="/base/perms_summary.mako"/>
## ${p.perms_summary(c.perm_user.permissions)}
+<%namespace name="base" file="/base/base.mako"/>
<%def name="perms_summary(permissions, show_all=False, actions=True, side_link=None)">
<% section_to_label = {
- 'global': 'Global Permissions',
- 'repository_branches': 'Repository Branch Rules',
- 'repositories': 'Repository Access Permissions',
- 'user_groups': 'User Group Permissions',
- 'repositories_groups': 'Repository Group Permissions',
+ 'global': 'Global Permissions Summary',
+ 'repository_branches': 'Repository Branch Rules Summary',
+ 'repositories': 'Repository Access Permissions Summary',
+ 'user_groups': 'User Group Permissions Summary',
+ 'repositories_groups': 'Repository Group Permissions Summary',
} %>
${_('Inherited Permissions')}
-${_('Custom Permissions')}
++ % if hasattr(c, 'user'): + ${base.gravatar_with_user(c.user.username, 16, tooltip=False, _class='pull-left')} - + % endif + ${_('Inherited Permissions')} +
++ % if hasattr(c, 'user'): + ${base.gravatar_with_user(c.user.username, 16, tooltip=False, _class='pull-left')} - + % endif + ${_('Custom Permissions')} +
%else: -${_('Default Global Permissions')}
++ ${_('Default Global Permissions')} +
%endif
@@ -18,7 +19,11 @@
- ${section_to_label.get(section, section)} -
+