Mercurial > kallithea
diff 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 |
line wrap: on
line diff
--- a/pylons_app/templates/shortlog/shortlog_data.html Sun Jun 13 23:14:04 2010 +0200 +++ b/pylons_app/templates/shortlog/shortlog_data.html Sun Jun 13 23:56:16 2010 +0200 @@ -1,7 +1,6 @@ ## -*- coding: utf-8 -*- -<%! -from pylons_app.lib import filters -%> +% if c.repo_changesets: + <table class="table_disp"> <tr class="header"> <td>${_('date')}</td> @@ -15,8 +14,8 @@ </tr> %for cnt,cs in enumerate(c.repo_changesets): <tr class="parity${cnt%2}"> - <td>${cs._ctx.date()|n,filters.age}</td> - <td title="${cs.author}">${cs.author|n,filters.person}</td> + <td>${h.age(cs._ctx.date())}</td> + <td title="${cs.author}">${h.person(cs.author)}</td> <td>r${cs.revision}:${cs.raw_id}</td> <td> ${h.link_to(h.truncate(cs.message,60), @@ -59,4 +58,7 @@ YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")} </h2> - </div> \ No newline at end of file + </div> +%else: + ${_('There are no commits yet')} +%endif \ No newline at end of file