Show More
@@ -2,7 +2,7 b'' | |||||
2 |
|
2 | |||
3 | <div class="panel panel-default user-profile"> |
|
3 | <div class="panel panel-default user-profile"> | |
4 | <div class="panel-heading"> |
|
4 | <div class="panel-heading"> | |
5 |
<h3 class="panel-title">${_('User |
|
5 | <h3 class="panel-title">${_('User Group Profile')}</h3> | |
6 | %if c.is_super_admin: |
|
6 | %if c.is_super_admin: | |
7 | ${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')} |
|
7 | ${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')} | |
8 | %endif |
|
8 | %endif |
@@ -7,9 +7,7 b'' | |||||
7 | %endif |
|
7 | %endif | |
8 | </%def> |
|
8 | </%def> | |
9 |
|
9 | |||
10 | <%def name="breadcrumbs_links()"> |
|
10 | <%def name="breadcrumbs_links()"></%def> | |
11 | ${_('User group')}: ${c.user_group.users_group_name} |
|
|||
12 | </%def> |
|
|||
13 |
|
11 | |||
14 | <%def name="menu_bar_nav()"> |
|
12 | <%def name="menu_bar_nav()"> | |
15 | ${self.menu_items(active='my_account')} |
|
13 | ${self.menu_items(active='my_account')} | |
@@ -17,30 +15,10 b'' | |||||
17 |
|
15 | |||
18 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
19 | <div class="box"> |
|
17 | <div class="box"> | |
20 | <div class="title"> |
|
18 | <div style="min-height: 25px"></div> | |
21 | ${self.breadcrumbs()} |
|
|||
22 | </div> |
|
|||
23 |
|
||||
24 | <div class="sidebar-col-wrapper scw-small"> |
|
|||
25 | ##main |
|
|||
26 | <div class="sidebar"> |
|
|||
27 | <ul class="nav nav-pills nav-stacked"> |
|
|||
28 | <li class="${'active' if c.active=='profile' else ''}"> |
|
|||
29 | <a href="${h.route_path('user_group_profile', user_group_name=c.user_group.users_group_name)}">${_('User Group Profile')}</a></li> |
|
|||
30 | ## These placeholders are here only for styling purposes. For every new item added to the list, you should remove one placeholder |
|
|||
31 | <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li> |
|
|||
32 | <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li> |
|
|||
33 | <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li> |
|
|||
34 | <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li> |
|
|||
35 | <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li> |
|
|||
36 | <li class="placeholder"><a href="#" style="visibility: hidden;">placeholder</a></li> |
|
|||
37 | </ul> |
|
|||
38 | </div> |
|
|||
39 |
|
||||
40 | <div class="main-content-full-width"> |
|
19 | <div class="main-content-full-width"> | |
41 | <%include file="/user_group/${c.active}.mako"/> |
|
20 | <%include file="/user_group/${c.active}.mako"/> | |
42 | </div> |
|
21 | </div> | |
43 |
|
|
22 | </div> | |
44 | </div> |
|
|||
45 |
|
23 | |||
46 | </%def> |
|
24 | </%def> |
@@ -7,9 +7,7 b'' | |||||
7 | %endif |
|
7 | %endif | |
8 | </%def> |
|
8 | </%def> | |
9 |
|
9 | |||
10 | <%def name="breadcrumbs_links()"> |
|
10 | <%def name="breadcrumbs_links()"></%def> | |
11 | ${_('User')}: ${c.user.username} |
|
|||
12 | </%def> |
|
|||
13 |
|
11 | |||
14 | <%def name="menu_bar_nav()"> |
|
12 | <%def name="menu_bar_nav()"> | |
15 | ${self.menu_items(active='my_account')} |
|
13 | ${self.menu_items(active='my_account')} | |
@@ -17,45 +15,11 b'' | |||||
17 |
|
15 | |||
18 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
19 | <div class="box"> |
|
17 | <div class="box"> | |
20 | <div class="title"> |
|
18 | <div style="min-height: 25px"></div> | |
21 | ${self.breadcrumbs()} |
|
|||
22 | </div> |
|
|||
23 |
|
||||
24 | <div class="sidebar-col-wrapper scw-small"> |
|
|||
25 | ##main |
|
|||
26 | <div class="sidebar"> |
|
|||
27 | <ul class="nav nav-pills nav-stacked"> |
|
|||
28 | <li class="${'active' if c.active=='user_profile' else ''}"> |
|
|||
29 | <a href="${h.route_path('user_profile', username=c.user.username)}">${_('Profile')}</a> |
|
|||
30 | </li> |
|
|||
31 | % if c.is_super_admin: |
|
|||
32 | <li><a href="${h.route_path('user_edit', user_id=c.user.user_id)}">${_('User Profile')}</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><a href="${h.route_path('edit_user_ssh_keys', user_id=c.user.user_id)}">${_('SSH Keys')}</a></li> |
|
|||
35 | <li><a href="${h.route_path('user_edit_advanced', user_id=c.user.user_id)}">${_('Advanced')}</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 |
|
|||
52 | </ul> |
|
|||
53 | </div> |
|
|||
54 |
|
19 | |||
55 | <div class="main-content-full-width"> |
|
20 | <div class="main-content-full-width"> | |
56 | <%include file="/users/${c.active}.mako"/> |
|
21 | <%include file="/users/${c.active}.mako"/> | |
57 | </div> |
|
22 | </div> | |
58 |
|
|
23 | </div> | |
59 | </div> |
|
|||
60 |
|
24 | |||
61 | </%def> |
|
25 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now