repos.html
57 lines
| 1.9 KiB
| text/html
|
HtmlLexer
r216 | ## -*- coding: utf-8 -*- | |||
r127 | <%inherit file="/base/base.html"/> | |||
r216 | ||||
r127 | <%def name="title()"> | |||
r216 | ${_('Repositories administration')} | |||
r127 | </%def> | |||
r362 | ||||
<%def name="breadcrumbs_links()"> | ||||
${h.link_to(_('Admin'),h.url('admin_home'))} » ${_('Repositories')} | ||||
r127 | </%def> | |||
<%def name="page_nav()"> | ||||
r182 | ${self.menu('admin')} | |||
r127 | </%def> | |||
<%def name="main()"> | ||||
r362 | <div class="box"> | |||
<!-- box / title --> | ||||
<div class="title"> | ||||
${self.breadcrumbs()} | ||||
<ul class="links"> | ||||
<li> | ||||
r375 | <span>${h.link_to(u'ADD NEW REPOSITORY',h.url('new_repo'),class_="add_icon")}</span> | |||
r362 | </li> | |||
</ul> | ||||
</div> | ||||
<!-- end box / title --> | ||||
<div class="table"> | ||||
r219 | <table class="table_disp"> | |||
<tr class="header"> | ||||
r362 | <th class="left">${_('name')}</th> | |||
r366 | <th class="left">${_('owner')}</th> | |||
r362 | <th class="left">${_('last revision')}</th> | |||
<th class="left">${_('action')}</th> | ||||
r219 | </tr> | |||
r362 | %for cnt,repo in enumerate(c.repos_list): | |||
<tr class="parity${cnt%2}"> | ||||
<td> | ||||
%if repo['repo'].dbrepo.private: | ||||
<img alt="${_('private')}" src="/images/icons/lock.png"/> | ||||
%else: | ||||
<img alt="${_('public')}" src="/images/icons/lock_open.png"/> | ||||
%endif | ||||
${h.link_to(repo['name'],h.url('edit_repo',repo_name=repo['name']))}</td> | ||||
r366 | <td>${repo['contact']}</td> | |||
r362 | <td>r${repo['rev']}:${repo['tip']}</td> | |||
r127 | <td> | |||
r299 | ${h.form(url('repo', repo_name=repo['name']),method='delete')} | |||
r379 | ${h.submit('remove_%s' % repo['name'],'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")} | |||
r127 | ${h.end_form()} | |||
r362 | </td> | |||
</tr> | ||||
%endfor | ||||
</table> | ||||
r127 | </div> | |||
r362 | </div> | |||
r216 | </%def> | |||