comparison rhodecode/templates/admin/repos_groups/repos_groups_show.html @ 2961:08f89c688592 beta

deleting a group now does same archive operation like deleting repositories. Improve prompt that show number of repos that will be archived together with a group.
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 26 Oct 2012 00:13:55 +0200
parents b4adab0717d8
children d7282940d779
comparison
equal deleted inserted replaced
2960:91d5f720e88f 2961:08f89c688592
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 <% gr_cn = gr.repositories.count() %>
43 <tr> 44 <tr>
44 <td> 45 <td>
45 <div style="white-space: nowrap"> 46 <div style="white-space: nowrap">
46 <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/> 47 <img class="icon" alt="${_('Repositories group')}" src="${h.url('/images/icons/database_link.png')}"/>
47 ${h.link_to(h.literal(' &raquo; '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))),url('edit_repos_group',id=gr.group_id))} 48 ${h.link_to(h.literal(' &raquo; '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))),url('edit_repos_group',id=gr.group_id))}
48 </div> 49 </div>
49 </td> 50 </td>
50 <td>${gr.group_description}</td> 51 <td>${gr.group_description}</td>
51 <td><b>${gr.repositories.count()}</b></td> 52 <td><b>${gr_cn}</b></td>
52 <td> 53 <td>
53 ${h.form(url('repos_group', id=gr.group_id),method='delete')} 54 ${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+"');")} 55 ${h.submit('remove_%s' % gr.name,_('delete'),class_="delete_icon action_button",onclick="return confirm('"+ungettext('Confirm to delete this group: %s with %s repository','Confirm to delete this group: %s with %s repositories',gr_cn) % (gr.name,gr_cn)+"');")}
55 ${h.end_form()} 56 ${h.end_form()}
56 </td> 57 </td>
57 </tr> 58 </tr>
58 % endfor 59 % endfor
59 60