##// END OF EJS Templates
bugfix, when form is crashing, form_result is unaccesibble
bugfix, when form is crashing, form_result is unaccesibble

File last commit:

r324:9c390ca1 default
r336:871c0dd1 default
Show More
repos.html
45 lines | 1.4 KiB | text/html | HtmlLexer
## -*- coding: utf-8 -*-
<%inherit file="/base/base.html"/>
<%def name="title()">
${_('Repositories administration')}
</%def>
<%def name="breadcrumbs()">
${h.link_to(u'Admin',h.url('admin_home'))}
/
${_('Repos')}
</%def>
<%def name="page_nav()">
${self.menu('admin')}
${self.submenu('repos')}
</%def>
<%def name="main()">
<div>
<h2>${_('Repositories administration')}</h2>
<table class="table_disp">
<tr class="header">
<td>${_('name')}</td>
<td>${_('last revision')}</td>
<td>${_('action')}</td>
</tr>
%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>
<td>r${repo['rev']}:${repo['tip']}</td>
<td>
${h.form(url('repo', repo_name=repo['name']),method='delete')}
${h.submit('remove','delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
${h.end_form()}
</td>
</tr>
%endfor
</table>
<span class="add_icon">${h.link_to(u'add repo',h.url('new_repo'))}</span>
</div>
</%def>