Mercurial > kallithea
comparison pylons_app/templates/branches/branches.html @ 282:237470e64bb8
switched filters into webhelpers for easy of usage.
Rewrite of html to use predefined templates from branches shortlog tags, for DRY usage.
Added info messages about empty branches/tags etc.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 13 Jun 2010 23:56:16 +0200 |
parents | 373ddb868bd6 |
children | 558eb7c5028f |
comparison
equal
deleted
inserted
replaced
281:cd2ee462fc2c | 282:237470e64bb8 |
---|---|
1 <%inherit file="/base/base.html"/> | 1 <%inherit file="/base/base.html"/> |
2 <%! from pylons_app.lib import filters %> | |
3 <%def name="title()"> | 2 <%def name="title()"> |
4 ${_('Branches')} | 3 ${_('Branches')} |
5 </%def> | 4 </%def> |
6 <%def name="breadcrumbs()"> | 5 <%def name="breadcrumbs()"> |
7 ${h.link_to(u'Home',h.url('/'))} | 6 ${h.link_to(u'Home',h.url('/'))} |
12 </%def> | 11 </%def> |
13 <%def name="page_nav()"> | 12 <%def name="page_nav()"> |
14 ${self.menu('branches')} | 13 ${self.menu('branches')} |
15 </%def> | 14 </%def> |
16 <%def name="main()"> | 15 <%def name="main()"> |
17 | |
18 <h2 class="no-link no-border">${_('Branches')}</h2> | 16 <h2 class="no-link no-border">${_('Branches')}</h2> |
19 | 17 <%include file='branches_data.html'/> |
20 <table class="table_disp"> | |
21 <tr class="header"> | |
22 <td>${_('date')}</td> | |
23 <td>${_('revision')}</td> | |
24 <td>${_('name')}</td> | |
25 <td>${_('links')}</td> | |
26 </tr> | |
27 %for cnt,branch in enumerate(c.repo_branches.items()): | |
28 <tr class="parity${cnt%2}"> | |
29 <td>${branch[1]._ctx.date()|n,filters.age}</td> | |
30 <td>r${branch[1].revision}:${branch[1].raw_id}</td> | |
31 <td> | |
32 <span class="logtags"> | |
33 <span class="branchtag">${h.link_to(branch[0], | |
34 h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))}</span> | |
35 </span> | |
36 </td> | |
37 <td class="nowrap"> | |
38 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=branch[1].raw_id))} | |
39 | | |
40 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=branch[1].raw_id))} | |
41 </td> | |
42 </tr> | |
43 %endfor | |
44 </table> | |
45 | |
46 </%def> | 18 </%def> |