diff --git a/rhodecode/templates/base/perms_summary.html b/rhodecode/templates/base/perms_summary.html new file mode 100644 --- /dev/null +++ b/rhodecode/templates/base/perms_summary.html @@ -0,0 +1,63 @@ +## snippet for displaying permissions overview for users + +<%def name="perms_summary(permissions)"> +
| ${_('Name')} | +${_('Permission')} | +${_('Edit Permission')} | +
|---|---|---|
| + ${h.get_permission_name(k)} + | ++ ${h.boolicon(k.split('.')[-1] != 'none')} + | ++ ${_('edit')} + | +
| + %if section == 'repositories': + ${k} + %elif section == 'repositories_groups': + ${k} + %endif + | ++ ${section_perm} + | ++ %if section == 'repositories': + ${_('edit')} + %elif section == 'repositories_groups': + ${_('edit')} + %endif + | +