Mercurial > kallithea
comparison pylons_app/templates/tags/tags.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 <%! | |
3 from pylons_app.lib import filters | |
4 %> | |
5 <%def name="title()"> | 2 <%def name="title()"> |
6 ${_('Tags')} | 3 ${_('Tags')} |
7 </%def> | 4 </%def> |
8 <%def name="breadcrumbs()"> | 5 <%def name="breadcrumbs()"> |
9 ${h.link_to(u'Home',h.url('/'))} | 6 ${h.link_to(u'Home',h.url('/'))} |
16 ${self.menu('tags')} | 13 ${self.menu('tags')} |
17 </%def> | 14 </%def> |
18 <%def name="main()"> | 15 <%def name="main()"> |
19 | 16 |
20 <h2 class="no-link no-border">${_('Tags')}</h2> | 17 <h2 class="no-link no-border">${_('Tags')}</h2> |
21 <table class="table_disp"> | 18 <%include file='tags_data.html'/> |
22 <tr class="header"> | |
23 <td>${_('date')}</td> | |
24 <td>${_('revision')}</td> | |
25 <td>${_('name')}</td> | |
26 <td>${_('links')}</td> | |
27 </tr> | |
28 %for cnt,tag in enumerate(c.repo_tags.items()): | |
29 <tr class="parity${cnt%2}"> | |
30 <td>${tag[1]._ctx.date()|n,filters.age}</td> | |
31 <td>r${tag[1].revision}:${tag[1].raw_id}</td> | |
32 <td> | |
33 <span class="logtags"> | |
34 <span class="tagtag">${h.link_to(tag[0], | |
35 h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))}</span> | |
36 </span> | |
37 </td> | |
38 <td class="nowrap"> | |
39 ${h.link_to(_('changeset'),h.url('changeset_home',repo_name=c.repo_name,revision=tag[1].raw_id))} | |
40 | | |
41 ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id))} | |
42 </td> | |
43 </tr> | |
44 %endfor | |
45 </table> | |
46 | 19 |
47 </%def> | 20 </%def> |