Show More
@@ -1,76 +1,76 b'' | |||||
1 | <%namespace name="base" file="/base/base.mako"/> |
|
1 | <%namespace name="base" file="/base/base.mako"/> | |
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 | |
9 | </div> |
|
9 | </div> | |
10 |
|
10 | |||
11 | <div class="panel-body user-profile-content fields"> |
|
11 | <div class="panel-body user-profile-content fields"> | |
12 | <div class="field"> |
|
12 | <div class="field"> | |
13 | <div class="label"> |
|
13 | <div class="label"> | |
14 | ${_('Group Name')}: |
|
14 | ${_('Group Name')}: | |
15 | </div> |
|
15 | </div> | |
16 | <div class="input"> |
|
16 | <div class="input"> | |
17 | <div class="text-as-placeholder"> |
|
17 | <div class="text-as-placeholder"> | |
18 | ${c.user_group.users_group_name} |
|
18 | ${c.user_group.users_group_name} | |
19 | </div> |
|
19 | </div> | |
20 | </div> |
|
20 | </div> | |
21 | </div> |
|
21 | </div> | |
22 | <div class="field"> |
|
22 | <div class="field"> | |
23 | <div class="label"> |
|
23 | <div class="label"> | |
24 | ${_('Owner')}: |
|
24 | ${_('Owner')}: | |
25 | </div> |
|
25 | </div> | |
26 | <div class="group_member"> |
|
26 | <div class="group_member"> | |
27 | ${base.gravatar(c.user_group.user.email, 16)} |
|
27 | ${base.gravatar(c.user_group.user.email, 16)} | |
28 | <span class="username user">${h.link_to_user(c.user_group.user)}</span> |
|
28 | <span class="username user">${h.link_to_user(c.user_group.user)}</span> | |
29 |
|
29 | |||
30 | </div> |
|
30 | </div> | |
31 | </div> |
|
31 | </div> | |
32 | <div class="field"> |
|
32 | <div class="field"> | |
33 | <div class="label"> |
|
33 | <div class="label"> | |
34 | ${_('Active')}: |
|
34 | ${_('Active')}: | |
35 | </div> |
|
35 | </div> | |
36 | <div class="input"> |
|
36 | <div class="input"> | |
37 | <div class="text-as-placeholder"> |
|
37 | <div class="text-as-placeholder"> | |
38 | ${c.user_group.users_group_active} |
|
38 | ${c.user_group.users_group_active} | |
39 | </div> |
|
39 | </div> | |
40 | </div> |
|
40 | </div> | |
41 | </div> |
|
41 | </div> | |
42 | % if not c.anonymous: |
|
42 | % if not c.anonymous: | |
43 | <div class="field"> |
|
43 | <div class="field"> | |
44 | <div class="label"> |
|
44 | <div class="label"> | |
45 | ${_('Members')}: |
|
45 | ${_('Members')}: | |
46 | </div> |
|
46 | </div> | |
47 |
|
47 | |||
48 | <div class="input"> |
|
48 | <div class="input"> | |
49 | <div class="text-as-placeholder"> |
|
49 | <div class="text-as-placeholder"> | |
50 | <table id="group_members_placeholder" class="rctable group_members"> |
|
50 | <table id="group_members_placeholder" class="rctable group_members"> | |
51 | <th>${_('Username')}</th> |
|
51 | <th>${_('Username')}</th> | |
52 | % if c.group_members: |
|
52 | % if c.group_members: | |
53 | % for user in c.group_members: |
|
53 | % for user in c.group_members: | |
54 | <tr> |
|
54 | <tr> | |
55 | <td id="member_user_${user.user_id}" class="td-author"> |
|
55 | <td id="member_user_${user.user_id}" class="td-author"> | |
56 | <div class="group_member"> |
|
56 | <div class="group_member"> | |
57 | ${base.gravatar(user.email, 16)} |
|
57 | ${base.gravatar(user.email, 16)} | |
58 | <span class="username user">${h.link_to(h.person(user), h.route_path('user_edit',user_id=user.user_id))}</span> |
|
58 | <span class="username user">${h.link_to(h.person(user), h.route_path('user_edit',user_id=user.user_id))}</span> | |
59 | <input type="hidden" name="__start__" value="member:mapping"> |
|
59 | <input type="hidden" name="__start__" value="member:mapping"> | |
60 | <input type="hidden" name="member_user_id" value="${user.user_id}"> |
|
60 | <input type="hidden" name="member_user_id" value="${user.user_id}"> | |
61 | <input type="hidden" name="type" value="existing" id="member_${user.user_id}"> |
|
61 | <input type="hidden" name="type" value="existing" id="member_${user.user_id}"> | |
62 | <input type="hidden" name="__end__" value="member:mapping"> |
|
62 | <input type="hidden" name="__end__" value="member:mapping"> | |
63 | </div> |
|
63 | </div> | |
64 | </td> |
|
64 | </td> | |
65 | </tr> |
|
65 | </tr> | |
66 | % endfor |
|
66 | % endfor | |
67 | % else: |
|
67 | % else: | |
68 | <tr><td colspan="2">${_('No members yet')}</td></tr> |
|
68 | <tr><td colspan="2">${_('No members yet')}</td></tr> | |
69 | % endif |
|
69 | % endif | |
70 | </table> |
|
70 | </table> | |
71 | </div> |
|
71 | </div> | |
72 | </div> |
|
72 | </div> | |
73 | </div> |
|
73 | </div> | |
74 | % endif |
|
74 | % endif | |
75 | </div> |
|
75 | </div> | |
76 | </div> No newline at end of file |
|
76 | </div> |
@@ -1,46 +1,24 b'' | |||||
1 | <%inherit file="/base/base.mako"/> |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('User group')}: ${c.user_group.users_group_name} |
|
4 | ${_('User group')}: ${c.user_group.users_group_name} | |
5 | %if c.rhodecode_name: |
|
5 | %if c.rhodecode_name: | |
6 | · ${h.branding(c.rhodecode_name)} |
|
6 | · ${h.branding(c.rhodecode_name)} | |
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')} | |
16 | </%def> |
|
14 | </%def> | |
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 | </div> |
|
|||
44 | </div> |
|
22 | </div> | |
45 |
|
23 | |||
46 | </%def> |
|
24 | </%def> |
@@ -1,61 +1,25 b'' | |||||
1 | <%inherit file="/base/base.mako"/> |
|
1 | <%inherit file="/base/base.mako"/> | |
2 |
|
2 | |||
3 | <%def name="title()"> |
|
3 | <%def name="title()"> | |
4 | ${_('User')}: ${c.user.username} |
|
4 | ${_('User')}: ${c.user.username} | |
5 | %if c.rhodecode_name: |
|
5 | %if c.rhodecode_name: | |
6 | · ${h.branding(c.rhodecode_name)} |
|
6 | · ${h.branding(c.rhodecode_name)} | |
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')} | |
16 | </%def> |
|
14 | </%def> | |
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 | </div> |
|
|||
59 | </div> |
|
23 | </div> | |
60 |
|
24 | |||
61 | </%def> |
|
25 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now