profiles: cleanup profile pages to not include side nav bar which didn't gave any purpose.
This commit is contained in:
parent
52f16be4b7
commit
f86c6aaa61
3 changed files with 5 additions and 63 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<div class="panel panel-default user-profile">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">${_('User group profile')}</h3>
|
||||
<h3 class="panel-title">${_('User Group Profile')}</h3>
|
||||
%if c.is_super_admin:
|
||||
${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')}
|
||||
%endif
|
||||
|
|
|
|||
|
|
@ -7,9 +7,7 @@
|
|||
%endif
|
||||
</%def>
|
||||
|
||||
<%def name="breadcrumbs_links()">
|
||||
${_('User group')}: ${c.user_group.users_group_name}
|
||||
</%def>
|
||||
<%def name="breadcrumbs_links()"></%def>
|
||||
|
||||
<%def name="menu_bar_nav()">
|
||||
${self.menu_items(active='my_account')}
|
||||
|
|
@ -17,30 +15,10 @@
|
|||
|
||||
<%def name="main()">
|
||||
<div class="box">
|
||||
<div class="title">
|
||||
${self.breadcrumbs()}
|
||||
</div>
|
||||
|
||||
<div class="sidebar-col-wrapper scw-small">
|
||||
##main
|
||||
<div class="sidebar">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li class="${'active' if c.active=='profile' else ''}">
|
||||
<a href="${h.route_path('user_group_profile', user_group_name=c.user_group.users_group_name)}">${_('User Group Profile')}</a></li>
|
||||
## These placeholders are here only for styling purposes. For every new item added to the list, you should remove one placeholder
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div style="min-height: 25px"></div>
|
||||
<div class="main-content-full-width">
|
||||
<%include file="/user_group/${c.active}.mako"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</%def>
|
||||
|
|
|
|||
|
|
@ -7,9 +7,7 @@
|
|||
%endif
|
||||
</%def>
|
||||
|
||||
<%def name="breadcrumbs_links()">
|
||||
${_('User')}: ${c.user.username}
|
||||
</%def>
|
||||
<%def name="breadcrumbs_links()"></%def>
|
||||
|
||||
<%def name="menu_bar_nav()">
|
||||
${self.menu_items(active='my_account')}
|
||||
|
|
@ -17,45 +15,11 @@
|
|||
|
||||
<%def name="main()">
|
||||
<div class="box">
|
||||
<div class="title">
|
||||
${self.breadcrumbs()}
|
||||
</div>
|
||||
|
||||
<div class="sidebar-col-wrapper scw-small">
|
||||
##main
|
||||
<div class="sidebar">
|
||||
<ul class="nav nav-pills nav-stacked">
|
||||
<li class="${'active' if c.active=='user_profile' else ''}">
|
||||
<a href="${h.route_path('user_profile', username=c.user.username)}">${_('Profile')}</a>
|
||||
</li>
|
||||
% if c.is_super_admin:
|
||||
<li><a href="${h.route_path('user_edit', user_id=c.user.user_id)}">${_('User Profile')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_auth_tokens', user_id=c.user.user_id)}">${_('Auth tokens')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id)}">${_('SSH Keys')}</a></li>
|
||||
<li><a href="${h.route_path('user_edit_advanced', user_id=c.user.user_id)}">${_('Advanced')}</a></li>
|
||||
<li><a href="${h.route_path('user_edit_global_perms', user_id=c.user.user_id)}">${_('Global permissions')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_perms_summary', user_id=c.user.user_id)}">${_('Permissions summary')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_emails', user_id=c.user.user_id)}">${_('Emails')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_ips', user_id=c.user.user_id)}">${_('Ip Whitelist')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_groups_management', user_id=c.user.user_id)}">${_('User Groups Management')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_audit_logs', user_id=c.user.user_id)}">${_('Audit logs')}</a></li>
|
||||
<li><a href="${h.route_path('edit_user_caches', user_id=c.user.user_id)}">${_('Caches')}</a></li>
|
||||
% else:
|
||||
## These placeholders are here only for styling purposes. For every new item added to the list, you should remove one placeholder
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
<li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li>
|
||||
% endif
|
||||
</ul>
|
||||
</div>
|
||||
<div style="min-height: 25px"></div>
|
||||
|
||||
<div class="main-content-full-width">
|
||||
<%include file="/users/${c.active}.mako"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</%def>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue