Show More
@@ -1,68 +1,68 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="/base/base.html"/> |
|
2 | <%inherit file="/base/base.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Repositories groups administration')} - ${c.rhodecode_name} |
|
5 | ${_('Repositories groups administration')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 |
|
8 | |||
9 | <%def name="breadcrumbs_links()"> |
|
9 | <%def name="breadcrumbs_links()"> | |
10 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} |
|
10 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} | |
11 | </%def> |
|
11 | </%def> | |
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 | <%def name="main()"> |
|
15 | <%def name="main()"> | |
16 | <div class="box"> |
|
16 | <div class="box"> | |
17 | <!-- box / title --> |
|
17 | <!-- box / title --> | |
18 | <div class="title"> |
|
18 | <div class="title"> | |
19 | ${self.breadcrumbs()} |
|
19 | ${self.breadcrumbs()} | |
20 | <ul class="links"> |
|
20 | <ul class="links"> | |
21 | <li> |
|
21 | <li> | |
22 | <span>${h.link_to(_(u'ADD NEW GROUP'),h.url('new_repos_group'))}</span> |
|
22 | <span>${h.link_to(_(u'ADD NEW GROUP'),h.url('new_repos_group'))}</span> | |
23 | </li> |
|
23 | </li> | |
24 | </ul> |
|
24 | </ul> | |
25 | </div> |
|
25 | </div> | |
26 | <!-- end box / title --> |
|
26 | <!-- end box / title --> | |
27 | <div class="table"> |
|
27 | <div class="table"> | |
28 | % if c.groups: |
|
28 | % if c.groups: | |
29 | <table class="table_disp"> |
|
29 | <table class="table_disp"> | |
30 |
|
30 | |||
31 | <thead> |
|
31 | <thead> | |
32 | <tr> |
|
32 | <tr> | |
33 | <th class="left"><a href="#">${_('Group name')}</a></th> |
|
33 | <th class="left"><a href="#">${_('Group name')}</a></th> | |
34 | <th class="left"><a href="#">${_('Description')}</a></th> |
|
34 | <th class="left"><a href="#">${_('Description')}</a></th> | |
35 | <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th> |
|
35 | <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th> | |
36 | <th class="left">${_('action')}</th> |
|
36 | <th class="left">${_('action')}</th> | |
37 | </tr> |
|
37 | </tr> | |
38 | </thead> |
|
38 | </thead> | |
39 |
|
39 | |||
40 | ## REPO GROUPS |
|
40 | ## REPO GROUPS | |
41 |
|
41 | |||
42 | % for gr in c.groups: |
|
42 | % for gr in c.groups: | |
43 | <tr> |
|
43 | <tr> | |
44 | <td> |
|
44 | <td> | |
45 | <div style="white-space: nowrap"> |
|
45 | <div style="white-space: nowrap"> | |
46 | <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> |
|
46 | <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> | |
47 | ${h.link_to(h.literal(' » '.join([g.name for g in gr.parents+[gr]])),url('edit_repos_group',id=gr.group_id))} |
|
47 | ${h.link_to(h.literal(' » '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))),url('edit_repos_group',id=gr.group_id))} | |
48 | </div> |
|
48 | </div> | |
49 | </td> |
|
49 | </td> | |
50 | <td>${gr.group_description}</td> |
|
50 | <td>${gr.group_description}</td> | |
51 | <td><b>${gr.repositories.count()}</b></td> |
|
51 | <td><b>${gr.repositories.count()}</b></td> | |
52 | <td> |
|
52 | <td> | |
53 | ${h.form(url('repos_group', id=gr.group_id),method='delete')} |
|
53 | ${h.form(url('repos_group', id=gr.group_id),method='delete')} | |
54 | ${h.submit('remove_%s' % gr.name,'delete',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this group: %s') % gr.name+"');")} |
|
54 | ${h.submit('remove_%s' % gr.name,'delete',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this group: %s') % gr.name+"');")} | |
55 | ${h.end_form()} |
|
55 | ${h.end_form()} | |
56 | </td> |
|
56 | </td> | |
57 | </tr> |
|
57 | </tr> | |
58 | % endfor |
|
58 | % endfor | |
59 |
|
59 | |||
60 | </table> |
|
60 | </table> | |
61 | % else: |
|
61 | % else: | |
62 | ${_('There are no repositories groups yet')} |
|
62 | ${_('There are no repositories groups yet')} | |
63 | % endif |
|
63 | % endif | |
64 |
|
64 | |||
65 | </div> |
|
65 | </div> | |
66 | </div> |
|
66 | </div> | |
67 |
|
67 | |||
68 | </%def> |
|
68 | </%def> |
@@ -1,53 +1,53 b'' | |||||
1 | ## -*- coding: utf-8 -*- |
|
1 | ## -*- coding: utf-8 -*- | |
2 | <%inherit file="/base/base.html"/> |
|
2 | <%inherit file="/base/base.html"/> | |
3 |
|
3 | |||
4 | <%def name="title()"> |
|
4 | <%def name="title()"> | |
5 | ${_('Users groups administration')} - ${c.rhodecode_name} |
|
5 | ${_('Users groups administration')} - ${c.rhodecode_name} | |
6 | </%def> |
|
6 | </%def> | |
7 |
|
7 | |||
8 | <%def name="breadcrumbs_links()"> |
|
8 | <%def name="breadcrumbs_links()"> | |
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users groups')} |
|
9 | ${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Users groups')} | |
10 | </%def> |
|
10 | </%def> | |
11 |
|
11 | |||
12 | <%def name="page_nav()"> |
|
12 | <%def name="page_nav()"> | |
13 | ${self.menu('admin')} |
|
13 | ${self.menu('admin')} | |
14 | </%def> |
|
14 | </%def> | |
15 |
|
15 | |||
16 | <%def name="main()"> |
|
16 | <%def name="main()"> | |
17 | <div class="box"> |
|
17 | <div class="box"> | |
18 | <!-- box / title --> |
|
18 | <!-- box / title --> | |
19 | <div class="title"> |
|
19 | <div class="title"> | |
20 | ${self.breadcrumbs()} |
|
20 | ${self.breadcrumbs()} | |
21 | <ul class="links"> |
|
21 | <ul class="links"> | |
22 | <li> |
|
22 | <li> | |
23 | <span>${h.link_to(_(u'ADD NEW USER GROUP'),h.url('new_users_group'))}</span> |
|
23 | <span>${h.link_to(_(u'ADD NEW USER GROUP'),h.url('new_users_group'))}</span> | |
24 | </li> |
|
24 | </li> | |
25 |
|
25 | |||
26 | </ul> |
|
26 | </ul> | |
27 | </div> |
|
27 | </div> | |
28 | <!-- end box / title --> |
|
28 | <!-- end box / title --> | |
29 | <div class="table"> |
|
29 | <div class="table"> | |
30 | <table class="table_disp"> |
|
30 | <table class="table_disp"> | |
31 | <tr class="header"> |
|
31 | <tr class="header"> | |
32 | <th class="left">${_('group name')}</th> |
|
32 | <th class="left">${_('group name')}</th> | |
33 | <th class="left">${_('members')}</th> |
|
33 | <th class="left">${_('members')}</th> | |
34 | <th class="left">${_('active')}</th> |
|
34 | <th class="left">${_('active')}</th> | |
35 | <th class="left">${_('action')}</th> |
|
35 | <th class="left">${_('action')}</th> | |
36 | </tr> |
|
36 | </tr> | |
37 | %for cnt,u_group in enumerate(c.users_groups_list): |
|
37 | %for cnt,u_group in enumerate(c.users_groups_list): | |
38 | <tr class="parity${cnt%2}"> |
|
38 | <tr class="parity${cnt%2}"> | |
39 | <td>${h.link_to(u_group.users_group_name,h.url('edit_users_group', id=u_group.users_group_id))}</td> |
|
39 | <td>${h.link_to(u_group.users_group_name,h.url('edit_users_group', id=u_group.users_group_id))}</td> | |
40 | <td><span class="tooltip" title="${', '.join([x.user.username for x in u_group.members[:50]])}">${len(u_group.members)}</span></td> |
|
40 | <td><span class="tooltip" title="${', '.join(map(h.safe_unicode,[x.user.username for x in u_group.members[:50]]))}">${len(u_group.members)}</span></td> | |
41 | <td>${h.bool2icon(u_group.users_group_active)}</td> |
|
41 | <td>${h.bool2icon(u_group.users_group_active)}</td> | |
42 | <td> |
|
42 | <td> | |
43 | ${h.form(url('users_group', id=u_group.users_group_id),method='delete')} |
|
43 | ${h.form(url('users_group', id=u_group.users_group_id),method='delete')} | |
44 | ${h.submit('remove_','delete',id="remove_group_%s" % u_group.users_group_id, |
|
44 | ${h.submit('remove_','delete',id="remove_group_%s" % u_group.users_group_id, | |
45 | class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this users group: %s') % u_group.users_group_name+"');")} |
|
45 | class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this users group: %s') % u_group.users_group_name+"');")} | |
46 | ${h.end_form()} |
|
46 | ${h.end_form()} | |
47 | </td> |
|
47 | </td> | |
48 | </tr> |
|
48 | </tr> | |
49 | %endfor |
|
49 | %endfor | |
50 | </table> |
|
50 | </table> | |
51 | </div> |
|
51 | </div> | |
52 | </div> |
|
52 | </div> | |
53 | </%def> |
|
53 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now