diff --git a/rhodecode/templates/base/perms_summary.html b/rhodecode/templates/base/perms_summary.html --- a/rhodecode/templates/base/perms_summary.html +++ b/rhodecode/templates/base/perms_summary.html @@ -1,6 +1,9 @@ ## snippet for displaying permissions overview for users +## usage: +## <%namespace name="p" file="/base/perms_summary.html"/> +## ${p.perms_summary(c.perm_user.permissions)} -<%def name="perms_summary(permissions)"> +<%def name="perms_summary(permissions, show_all=False)">
| ${_('Name')} | -${_('Permission')} | -${_('Edit Permission')} | -|
|---|---|---|---|
| + | ${_('Permission')} | +${_('Edit Permission')} | +|
| ${h.get_permission_name(k)} | - ${h.boolicon(k.split('.')[-1] != 'none')} - | -${_('edit')} | |
| ${_('Name')} | +${_('Permission')} | +${_('Edit Permission')} | +|
| %if section == 'repositories': ${k} %elif section == 'repositories_groups': ${k} + %elif section == 'user_groups': + ##${k} + ${k} %endif | @@ -48,13 +60,15 @@ ${_('edit')} %elif section == 'repositories_groups': ${_('edit')} + %elif section == 'user_groups': + ##${_('edit')} %endif | ||