## 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, show_all=False)">
${_('Permission')} | ${_('Edit Permission')} | |
---|---|---|
${h.get_permission_name(k)} | ${_('edit')} | |
${_('Name')} | ${_('Permission')} | ${_('Edit Permission')} |
%if section == 'repositories': ${k} %elif section == 'repositories_groups': ${k} %elif section == 'user_groups': ##${k} ${k} %endif | ${section_perm} | %if section == 'repositories': ${_('edit')} %elif section == 'repositories_groups': ${_('edit')} %elif section == 'user_groups': ##${_('edit')} %endif |