repos_groups_show.html
84 lines
| 3.0 KiB
| text/html
|
HtmlLexer
r1345 | ## -*- coding: utf-8 -*- | |||
<%inherit file="/base/base.html"/> | ||||
<%def name="title()"> | ||||
r3582 | ${_('Repository groups administration')} · ${c.rhodecode_name} | |||
r1345 | </%def> | |||
<%def name="breadcrumbs_links()"> | ||||
r3660 | %if h.HasPermissionAny('hg.admin')(): | |||
${h.link_to(_('Admin'),h.url('admin_home'))} | ||||
%else: | ||||
${_('Admin')} | ||||
%endif | ||||
r3392 | » | |||
Mads Kiilerich
|
r3654 | ${_('Repository groups')} | ||
r1345 | </%def> | |||
Mads Kiilerich
|
r3603 | |||
r1345 | <%def name="page_nav()"> | |||
${self.menu('admin')} | ||||
</%def> | ||||
Mads Kiilerich
|
r3603 | |||
r1345 | <%def name="main()"> | |||
<div class="box"> | ||||
<!-- box / title --> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
<ul class="links"> | ||||
<li> | ||||
r3371 | %if h.HasPermissionAny('hg.admin')(): | |||
<span>${h.link_to(_(u'Add group'),h.url('new_repos_group'))}</span> | ||||
%endif | ||||
r1888 | </li> | |||
</ul> | ||||
r1345 | </div> | |||
<!-- end box / title --> | ||||
<div class="table"> | ||||
% if c.groups: | ||||
<table class="table_disp"> | ||||
r1888 | ||||
r1345 | <thead> | |||
<tr> | ||||
<th class="left"><a href="#">${_('Group name')}</a></th> | ||||
<th class="left"><a href="#">${_('Description')}</a></th> | ||||
r1633 | <th class="left"><a href="#">${_('Number of toplevel repositories')}</a></th> | |||
Mads Kiilerich
|
r3654 | <th class="left" colspan="2">${_('Action')}</th> | ||
r1345 | </tr> | |||
</thead> | ||||
r1888 | ||||
r1345 | ## REPO GROUPS | |||
r1888 | ||||
r1345 | % for gr in c.groups: | |||
r2961 | <% gr_cn = gr.repositories.count() %> | |||
r1345 | <tr> | |||
<td> | ||||
<div style="white-space: nowrap"> | ||||
Mads Kiilerich
|
r3410 | <img class="icon" alt="${_('Repository group')}" src="${h.url('/images/icons/database_link.png')}"/> | ||
r3194 | ${h.link_to(h.literal(' » '.join(map(h.safe_unicode,[g.name for g in gr.parents+[gr]]))), url('repos_group_home',group_name=gr.group_name))} | |||
r1345 | </div> | |||
</td> | ||||
<td>${gr.group_description}</td> | ||||
r2961 | <td><b>${gr_cn}</b></td> | |||
r3194 | <td> | |||
Mads Kiilerich
|
r3654 | <a href="${h.url('edit_repos_group',group_name=gr.group_name)}" title="${_('Edit')}"> | ||
r3194 | ${h.submit('edit_%s' % gr.group_name,_('edit'),class_="edit_icon action_button")} | |||
r3216 | </a> | |||
r3194 | </td> | |||
<td> | ||||
r3222 | ${h.form(url('repos_group', group_name=gr.group_name),method='delete')} | |||
r3194 | ${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)+"');")} | |||
${h.end_form()} | ||||
r3216 | </td> | |||
r1345 | </tr> | |||
% endfor | ||||
r1888 | ||||
r1345 | </table> | |||
% else: | ||||
Mads Kiilerich
|
r3410 | ${_('There are no repository groups yet')} | ||
r1345 | % endif | |||
r1888 | ||||
r1345 | </div> | |||
r1888 | </div> | |||
</%def> | ||||