##// END OF EJS Templates
user-profile: expose quick links for super admins.
marcink -
r3936:71524228 default
parent child Browse files
Show More
@@ -26,14 +26,29 b''
26 <div class="sidebar">
26 <div class="sidebar">
27 <ul class="nav nav-pills nav-stacked">
27 <ul class="nav nav-pills nav-stacked">
28 <li class="${'active' if c.active=='user_profile' else ''}">
28 <li class="${'active' if c.active=='user_profile' else ''}">
29 <a href="${h.route_path('user_profile', username=c.user.username)}">${_('Profile')}</a></li>
29 <a href="${h.route_path('user_profile', username=c.user.username)}">${_('Profile')}</a>
30 ## These placeholders are here only for styling purposes. For every new item added to the list, you should remove one placeholder
30 </li>
31 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
31 % if c.is_super_admin:
32 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
32 <li><a href="${h.route_path('user_edit', user_id=c.user.user_id)}">${_('User Profile')}</a></li>
33 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
33 <li><a href="${h.route_path('edit_user_auth_tokens', user_id=c.user.user_id)}">${_('Auth tokens')}</a></li>
34 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
34 <li><a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id)}">${_('SSH Keys')}</a></li>
35 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
35 <li><a href="${h.route_path('user_edit_advanced', user_id=c.user.user_id)}">${_('Advanced')}</a></li>
36 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
36 <li><a href="${h.route_path('user_edit_global_perms', user_id=c.user.user_id)}">${_('Global permissions')}</a></li>
37 <li><a href="${h.route_path('edit_user_perms_summary', user_id=c.user.user_id)}">${_('Permissions summary')}</a></li>
38 <li><a href="${h.route_path('edit_user_emails', user_id=c.user.user_id)}">${_('Emails')}</a></li>
39 <li><a href="${h.route_path('edit_user_ips', user_id=c.user.user_id)}">${_('Ip Whitelist')}</a></li>
40 <li><a href="${h.route_path('edit_user_groups_management', user_id=c.user.user_id)}">${_('User Groups Management')}</a></li>
41 <li><a href="${h.route_path('edit_user_audit_logs', user_id=c.user.user_id)}">${_('Audit logs')}</a></li>
42 <li><a href="${h.route_path('edit_user_caches', user_id=c.user.user_id)}">${_('Caches')}</a></li>
43 % else:
44 ## These placeholders are here only for styling purposes. For every new item added to the list, you should remove one placeholder
45 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
46 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
47 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
48 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
49 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
50 <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
51 % endif
37 </ul>
52 </ul>
38 </div>
53 </div>
39
54
General Comments 0
You need to be logged in to leave comments. Login now