##// END OF EJS Templates
profiles: cleanup profile pages to not include side nav bar which didn't gave any purpose.
marcink -
r4016:32709bda default
parent child Browse files
Show More
@@ -1,76 +1,76 b''
1 1 <%namespace name="base" file="/base/base.mako"/>
2 2
3 3 <div class="panel panel-default user-profile">
4 4 <div class="panel-heading">
5 <h3 class="panel-title">${_('User group profile')}</h3>
5 <h3 class="panel-title">${_('User Group Profile')}</h3>
6 6 %if c.is_super_admin:
7 7 ${h.link_to(_('Edit'), h.route_path('edit_user_group', user_group_id=c.user_group.users_group_id), class_='panel-edit')}
8 8 %endif
9 9 </div>
10 10
11 11 <div class="panel-body user-profile-content fields">
12 12 <div class="field">
13 13 <div class="label">
14 14 ${_('Group Name')}:
15 15 </div>
16 16 <div class="input">
17 17 <div class="text-as-placeholder">
18 18 ${c.user_group.users_group_name}
19 19 </div>
20 20 </div>
21 21 </div>
22 22 <div class="field">
23 23 <div class="label">
24 24 ${_('Owner')}:
25 25 </div>
26 26 <div class="group_member">
27 27 ${base.gravatar(c.user_group.user.email, 16)}
28 28 <span class="username user">${h.link_to_user(c.user_group.user)}</span>
29 29
30 30 </div>
31 31 </div>
32 32 <div class="field">
33 33 <div class="label">
34 34 ${_('Active')}:
35 35 </div>
36 36 <div class="input">
37 37 <div class="text-as-placeholder">
38 38 ${c.user_group.users_group_active}
39 39 </div>
40 40 </div>
41 41 </div>
42 42 % if not c.anonymous:
43 43 <div class="field">
44 44 <div class="label">
45 45 ${_('Members')}:
46 46 </div>
47 47
48 48 <div class="input">
49 49 <div class="text-as-placeholder">
50 50 <table id="group_members_placeholder" class="rctable group_members">
51 51 <th>${_('Username')}</th>
52 52 % if c.group_members:
53 53 % for user in c.group_members:
54 54 <tr>
55 55 <td id="member_user_${user.user_id}" class="td-author">
56 56 <div class="group_member">
57 57 ${base.gravatar(user.email, 16)}
58 58 <span class="username user">${h.link_to(h.person(user), h.route_path('user_edit',user_id=user.user_id))}</span>
59 59 <input type="hidden" name="__start__" value="member:mapping">
60 60 <input type="hidden" name="member_user_id" value="${user.user_id}">
61 61 <input type="hidden" name="type" value="existing" id="member_${user.user_id}">
62 62 <input type="hidden" name="__end__" value="member:mapping">
63 63 </div>
64 64 </td>
65 65 </tr>
66 66 % endfor
67 67 % else:
68 68 <tr><td colspan="2">${_('No members yet')}</td></tr>
69 69 % endif
70 70 </table>
71 71 </div>
72 72 </div>
73 73 </div>
74 74 % endif
75 75 </div>
76 76 </div> No newline at end of file
@@ -1,46 +1,24 b''
1 1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${_('User group')}: ${c.user_group.users_group_name}
5 5 %if c.rhodecode_name:
6 6 &middot; ${h.branding(c.rhodecode_name)}
7 7 %endif
8 8 </%def>
9 9
10 <%def name="breadcrumbs_links()">
11 ${_('User group')}: ${c.user_group.users_group_name}
12 </%def>
10 <%def name="breadcrumbs_links()"></%def>
13 11
14 12 <%def name="menu_bar_nav()">
15 13 ${self.menu_items(active='my_account')}
16 14 </%def>
17 15
18 16 <%def name="main()">
19 17 <div class="box">
20 <div class="title">
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
18 <div style="min-height: 25px"></div>
40 19 <div class="main-content-full-width">
41 20 <%include file="/user_group/${c.active}.mako"/>
42 21 </div>
43 </div>
44 22 </div>
45 23
46 24 </%def>
@@ -1,61 +1,25 b''
1 1 <%inherit file="/base/base.mako"/>
2 2
3 3 <%def name="title()">
4 4 ${_('User')}: ${c.user.username}
5 5 %if c.rhodecode_name:
6 6 &middot; ${h.branding(c.rhodecode_name)}
7 7 %endif
8 8 </%def>
9 9
10 <%def name="breadcrumbs_links()">
11 ${_('User')}: ${c.user.username}
12 </%def>
10 <%def name="breadcrumbs_links()"></%def>
13 11
14 12 <%def name="menu_bar_nav()">
15 13 ${self.menu_items(active='my_account')}
16 14 </%def>
17 15
18 16 <%def name="main()">
19 17 <div class="box">
20 <div class="title">
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>
18 <div style="min-height: 25px"></div>
54 19
55 20 <div class="main-content-full-width">
56 21 <%include file="/users/${c.active}.mako"/>
57 22 </div>
58 </div>
59 23 </div>
60 24
61 25 </%def>
General Comments 0
You need to be logged in to leave comments. Login now