Mercurial > kallithea
comparison pylons_app/templates/shortlog/shortlog_data.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 ## -*- coding: utf-8 -*- | 1 ## -*- coding: utf-8 -*- |
2 <%! | 2 % if c.repo_changesets: |
3 from pylons_app.lib import filters | 3 |
4 %> | |
5 <table class="table_disp"> | 4 <table class="table_disp"> |
6 <tr class="header"> | 5 <tr class="header"> |
7 <td>${_('date')}</td> | 6 <td>${_('date')}</td> |
8 <td>${_('author')}</td> | 7 <td>${_('author')}</td> |
9 <td>${_('revision')}</td> | 8 <td>${_('revision')}</td> |
13 <td>${_('links')}</td> | 12 <td>${_('links')}</td> |
14 | 13 |
15 </tr> | 14 </tr> |
16 %for cnt,cs in enumerate(c.repo_changesets): | 15 %for cnt,cs in enumerate(c.repo_changesets): |
17 <tr class="parity${cnt%2}"> | 16 <tr class="parity${cnt%2}"> |
18 <td>${cs._ctx.date()|n,filters.age}</td> | 17 <td>${h.age(cs._ctx.date())}</td> |
19 <td title="${cs.author}">${cs.author|n,filters.person}</td> | 18 <td title="${cs.author}">${h.person(cs.author)}</td> |
20 <td>r${cs.revision}:${cs.raw_id}</td> | 19 <td>r${cs.revision}:${cs.raw_id}</td> |
21 <td> | 20 <td> |
22 ${h.link_to(h.truncate(cs.message,60), | 21 ${h.link_to(h.truncate(cs.message,60), |
23 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), | 22 h.url('changeset_home',repo_name=c.repo_name,revision=cs._short), |
24 title=cs.message)} | 23 title=cs.message)} |
58 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ | 57 YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ |
59 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); | 58 YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); |
60 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} | 59 YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} |
61 </h2> | 60 </h2> |
62 </div> | 61 </div> |
62 %else: | |
63 ${_('There are no commits yet')} | |
64 %endif |