comparison rhodecode/templates/admin/repos_groups/repos_groups_show.html @ 1345:3bce31f026b8 beta

#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods. Added new db unique key for Group
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 23 May 2011 02:22:00 +0200
parents
children 923d2f699bd7
comparison
equal deleted inserted replaced
1344:eef7a1b953e8 1345:3bce31f026b8
1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/>
3
4 <%def name="title()">
5 ${_('Repositories groups administration')} - ${c.rhodecode_name}
6 </%def>
7
8
9 <%def name="breadcrumbs_links()">
10 ${h.link_to(_('Admin'),h.url('admin_home'))} &raquo; ${_('Repositories')}
11 </%def>
12 <%def name="page_nav()">
13 ${self.menu('admin')}
14 </%def>
15 <%def name="main()">
16 <div class="box">
17 <!-- box / title -->
18 <div class="title">
19 ${self.breadcrumbs()}
20 <ul class="links">
21 <li>
22 <span>${h.link_to(u'ADD NEW GROUP',h.url('new_repos_group'))}</span>
23 </li>
24 </ul>
25 </div>
26 <!-- end box / title -->
27 <div class="table">
28 % if c.groups:
29 <table class="table_disp">
30
31 <thead>
32 <tr>
33 <th class="left"><a href="#">${_('Group name')}</a></th>
34 <th class="left"><a href="#">${_('Description')}</a></th>
35 <th class="left"><a href="#">${_('Number of repositories')}</a></th>
36 <th class="left">${_('action')}</th>
37 </tr>
38 </thead>
39
40 ## REPO GROUPS
41
42 % for gr in c.groups:
43 <tr>
44 <td>
45 <div style="white-space: nowrap">
46 <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/>
47 ${h.link_to(h.literal(' &raquo; '.join([g.group_name for g in gr.parents+[gr]])),url('edit_repos_group',id=gr.group_id))}
48 </div>
49 </td>
50 <td>${gr.group_description}</td>
51 <td><b>${gr.repositories.count()}</b></td>
52 <td>
53 ${h.form(url('repos_group', id=gr.group_id),method='delete')}
54 ${h.submit('remove_%s' % gr.group_name,'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this group');")}
55 ${h.end_form()}
56 </td>
57 </tr>
58 % endfor
59
60 </table>
61 % else:
62 {_('There are no repositories groups yet')}
63 % endif
64
65 </div>
66 </div>
67
68 </%def>