user_edit.mako
58 lines
| 2.8 KiB
| application/x-mako
|
MakoHtmlLexer
r1282 | <%inherit file="/base/base.mako"/> | |||
<%def name="title()"> | ||||
r4062 | ${_('{} user settings').format(c.user.username)} | |||
r1282 | %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 | » | |||
r1520 | ${h.link_to(_('Users'),h.route_path('users'))} | |||
r1282 | » | |||
</%def> | ||||
<%def name="menu_bar_nav()"> | ||||
${self.menu_items(active='admin')} | ||||
</%def> | ||||
r3585 | <%def name="menu_bar_subnav()"> | |||
${self.admin_menu(active='users')} | ||||
</%def> | ||||
r1282 | <%def name="main()"> | |||
<div class="box user_settings"> | ||||
r3589 | % if not c.user.active: | |||
r4431 | <div class="alert alert-warning text-center" style="margin: 0 0 15px 0"> | |||
<strong>${_('This user is set as non-active and disabled.')}</strong> | ||||
r3589 | </div> | |||
% endif | ||||
r1282 | ||||
r3585 | ##main | |||
r1282 | <div class="sidebar-col-wrapper"> | |||
<div class="sidebar"> | ||||
<ul class="nav nav-pills nav-stacked"> | ||||
r4062 | <li class="${h.is_active('profile', c.active)}"><a href="${h.route_path('user_edit', user_id=c.user.user_id)}">${_('User Profile')}</a></li> | |||
<li class="${h.is_active('auth_tokens', c.active)}"><a href="${h.route_path('edit_user_auth_tokens', user_id=c.user.user_id)}">${_('Auth tokens')}</a></li> | ||||
<li class="${h.is_active(['ssh_keys','ssh_keys_generate'], c.active)}"><a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id)}">${_('SSH Keys')}</a></li> | ||||
<li class="${h.is_active('advanced', c.active)}"><a href="${h.route_path('user_edit_advanced', user_id=c.user.user_id)}">${_('Advanced')}</a></li> | ||||
<li class="${h.is_active('global_perms', c.active)}"><a href="${h.route_path('user_edit_global_perms', user_id=c.user.user_id)}">${_('Global permissions')}</a></li> | ||||
<li class="${h.is_active('perms_summary', c.active)}"><a href="${h.route_path('edit_user_perms_summary', user_id=c.user.user_id)}">${_('Permissions summary')}</a></li> | ||||
<li class="${h.is_active('emails', c.active)}"><a href="${h.route_path('edit_user_emails', user_id=c.user.user_id)}">${_('Emails')}</a></li> | ||||
<li class="${h.is_active('ips', c.active)}"><a href="${h.route_path('edit_user_ips', user_id=c.user.user_id)}">${_('Ip Whitelist')}</a></li> | ||||
<li class="${h.is_active('groups', c.active)}"><a href="${h.route_path('edit_user_groups_management', user_id=c.user.user_id)}">${_('User Groups Management')}</a></li> | ||||
<li class="${h.is_active('audit', c.active)}"><a href="${h.route_path('edit_user_audit_logs', user_id=c.user.user_id)}">${_('Audit logs')}</a></li> | ||||
<li class="${h.is_active('caches', c.active)}"><a href="${h.route_path('edit_user_caches', user_id=c.user.user_id)}">${_('Caches')}</a></li> | ||||
r1282 | </ul> | |||
</div> | ||||
<div class="main-content-full-width"> | ||||
<%include file="/admin/users/user_edit_${c.active}.mako"/> | ||||
</div> | ||||
</div> | ||||
</div> | ||||
</%def> | ||||