permissions.mako
65 lines
| 2.2 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.mako"/> | ||||
<%def name="title()"> | ||||
${_('Permissions Administration')} | ||||
%if c.rhodecode_name: | ||||
· ${h.branding(c.rhodecode_name)} | ||||
%endif | ||||
</%def> | ||||
<%def name="breadcrumbs_links()"> | ||||
r1758 | ${h.link_to(_('Admin'),h.route_path('admin_home'))} | |||
r1282 | » | |||
${_('Permissions')} | ||||
</%def> | ||||
<%def name="menu_bar_nav()"> | ||||
${self.menu_items(active='admin')} | ||||
</%def> | ||||
r3566 | <%def name="menu_bar_subnav()"> | |||
${self.admin_menu(active='permissions')} | ||||
</%def> | ||||
r1282 | ||||
<%def name="main()"> | ||||
<div class="box"> | ||||
<div class="sidebar-col-wrapper scw-small"> | ||||
##main | ||||
<div class="sidebar"> | ||||
<ul class="nav nav-pills nav-stacked"> | ||||
<li class="${'active' if c.active=='application' else ''}"> | ||||
r1941 | <a href="${h.route_path('admin_permissions_application')}">${_('Application')}</a> | |||
r1282 | </li> | |||
<li class="${'active' if c.active=='global' else ''}"> | ||||
r1941 | <a href="${h.route_path('admin_permissions_global')}">${_('Global')}</a> | |||
r1282 | </li> | |||
<li class="${'active' if c.active=='objects' else ''}"> | ||||
r1941 | <a href="${h.route_path('admin_permissions_object')}">${_('Object')}</a> | |||
r1282 | </li> | |||
r2975 | <li class="${'active' if c.active=='branch' else ''}"> | |||
<a href="${h.route_path('admin_permissions_branch')}">${_('Branch')}</a> | ||||
</li> | ||||
r1282 | <li class="${'active' if c.active=='ips' else ''}"> | |||
r1941 | <a href="${h.route_path('admin_permissions_ips')}">${_('IP Whitelist')}</a> | |||
r1282 | </li> | |||
r1943 | <li class="${'active' if c.active=='auth_token_access' else ''}"> | |||
<a href="${h.route_path('admin_permissions_auth_token_access')}">${_('AuthToken Access')}</a> | ||||
</li> | ||||
r2042 | <li class="${'active' if c.active=='ssh_keys' else ''}"> | |||
<a href="${h.route_path('admin_permissions_ssh_keys')}">${_('SSH Keys')}</a> | ||||
</li> | ||||
r1282 | <li class="${'active' if c.active=='perms' else ''}"> | |||
r1941 | <a href="${h.route_path('admin_permissions_overview')}">${_('Overview')}</a> | |||
r1282 | </li> | |||
</ul> | ||||
</div> | ||||
<div class="main-content-full-width"> | ||||
<%include file="/admin/permissions/permissions_${c.active}.mako"/> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
</%def> | ||||