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