Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
|
|
r216
|
|
## -*- coding: utf-8 -*-
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
<%inherit file="/base/base.html"/>
|
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
|
|
r216
|
|
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
<%def name="title()">
|
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
|
|
r216
|
|
${_('Repositories administration')}
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
</%def>
|
|
|
|
|
<%def name="breadcrumbs()">
|
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
|
|
r216
|
|
${h.link_to(u'Admin',h.url('admin_home'))}
|
|
|
|
|
/
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
</%def>
|
|
|
|
|
<%def name="page_nav()">
|
new way of menu generation for base, and all admin pages
|
|
r182
|
|
${self.menu('admin')}
|
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
|
|
r216
|
|
${self.submenu('repos')}
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
</%def>
|
|
|
|
|
<%def name="main()">
|
|
|
|
|
<div>
|
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
|
|
r216
|
|
<h2>${_('Repositories administration')}</h2>
|
html + css changes, added icons and etc.
|
|
r219
|
|
<table class="table_disp">
|
|
|
|
|
<tr class="header">
|
|
|
|
|
<td>${_('name')}</td>
|
|
|
|
|
<td>${_('last revision')}</td>
|
|
|
|
|
<td>${_('action')}</td>
|
|
|
|
|
</tr>
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
%for cnt,repo in enumerate(c.repos_list):
|
|
|
|
|
<tr class="parity${cnt%2}">
|
repo edit
|
|
r220
|
|
<td>${h.link_to(repo['name'],h.url('edit_repo',id=repo['name']))}</td>
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
<td>r${repo['rev']}:${repo['tip']}</td>
|
|
|
|
|
<td>
|
|
|
|
|
${h.form(url('repo', id=repo['name']),method='delete')}
|
html + css changes, added icons and etc.
|
|
r219
|
|
${h.submit('remove','delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
${h.end_form()}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
%endfor
|
|
|
|
|
</table>
|
html + css changes, added icons and etc.
|
|
r219
|
|
<span class="add_icon">${h.link_to(u'add repo',h.url('new_repo'))}</span>
|
Html changes and cleanups, made folders for html templates, implemented tags and branches pages
|
|
r127
|
|
</div>
|
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
|
|
r216
|
|
</%def>
|
|
|
|