##// END OF EJS Templates
fix(caching): fixed problems with Cache query for users....
fix(caching): fixed problems with Cache query for users. The old way of querying caused the user get query to be always cached, and returning old results even in 2fa forms. The new limited query doesn't cache the user object resolving issues

File last commit:

r5037:bd722d6e default
r5365:ae8a165b default
Show More
permissions.mako
64 lines | 2.1 KiB | application/x-mako | MakoHtmlLexer
templating: use .mako as extensions for template files.
r1282 <%inherit file="/base/base.mako"/>
<%def name="title()">
${_('Permissions Administration')}
%if c.rhodecode_name:
&middot; ${h.branding(c.rhodecode_name)}
%endif
</%def>
<%def name="breadcrumbs_links()">
audit-logs: introduced new view to replace admin journal....
r1758 ${h.link_to(_('Admin'),h.route_path('admin_home'))}
templating: use .mako as extensions for template files.
r1282 &raquo;
${_('Permissions')}
</%def>
<%def name="menu_bar_nav()">
${self.menu_items(active='admin')}
</%def>
ui: navigation, fixed wrapping of new admin navigation items
r3566 <%def name="menu_bar_subnav()">
${self.admin_menu(active='permissions')}
</%def>
templating: use .mako as extensions for template files.
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">
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('application', c.active)}">
global-permissions: ported controller to pyramid view....
r1941 <a href="${h.route_path('admin_permissions_application')}">${_('Application')}</a>
templating: use .mako as extensions for template files.
r1282 </li>
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('global', c.active)}">
global-permissions: ported controller to pyramid view....
r1941 <a href="${h.route_path('admin_permissions_global')}">${_('Global')}</a>
templating: use .mako as extensions for template files.
r1282 </li>
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('objects', c.active)}">
global-permissions: ported controller to pyramid view....
r1941 <a href="${h.route_path('admin_permissions_object')}">${_('Object')}</a>
templating: use .mako as extensions for template files.
r1282 </li>
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('branch', c.active)}">
branch permissions: added logic to define in UI branch permissions....
r2975 <a href="${h.route_path('admin_permissions_branch')}">${_('Branch')}</a>
</li>
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('ips', c.active)}">
global-permissions: ported controller to pyramid view....
r1941 <a href="${h.route_path('admin_permissions_ips')}">${_('IP Whitelist')}</a>
templating: use .mako as extensions for template files.
r1282 </li>
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('auth_token_access', c.active)}">
permissions: expose new view that lists all available views for usage in whitelist access.
r1943 <a href="${h.route_path('admin_permissions_auth_token_access')}">${_('AuthToken Access')}</a>
</li>
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('ssh_keys', c.active)}">
ssh-keys: added admin panel for managing globally all SSH Keys....
r2042 <a href="${h.route_path('admin_permissions_ssh_keys')}">${_('SSH Keys')}</a>
</li>
templates: use a single helper to select activated menu entries in templates.
r4062 <li class="${h.is_active('perms', c.active)}">
global-permissions: ported controller to pyramid view....
r1941 <a href="${h.route_path('admin_permissions_overview')}">${_('Overview')}</a>
templating: use .mako as extensions for template files.
r1282 </li>
</ul>
</div>
<div class="main-content-full-width">
<%include file="/admin/permissions/permissions_${c.active}.mako"/>
</div>
</div>
</div>
</%def>