Mercurial > kallithea
view pylons_app/templates/shortlog_data.html @ 83:db39d0ca5308
implemented Shortlog as seperate controller,
filters rewrite. Little html fixes
author | Marcin Kuzminski <marcin@python-blog.com> |
---|---|
date | Sun, 18 Apr 2010 11:23:10 +0200 |
parents | |
children | 00b17b3a0978 |
line wrap: on
line source
## -*- coding: utf-8 -*- <%! from pylons_app.lib import filters %> <table> %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.link_to(cs.message,h.url('rev/'+str(cs._ctx)))}</td> <td class="nowrap"> ${h.link_to(_('changeset'),h.url('file/'+str(cs._ctx)))} | ${h.link_to(_('files'),h.url('file/'+str(cs._ctx)))} </td> </tr> %endfor <tr> <script type="text/javascript"> var data_div = 'shortlog_data'; YAHOO.util.Event.onDOMReady(function(){ YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ YAHOO.util.Dom.setStyle('shortlog_data','opacity','0.3');});}); </script> <td>${c.repo_changesets.pager('$link_previous ~2~ $link_next', onclick="""YAHOO.util.Connect.asyncRequest('GET','$partial_url',{ success:function(o){YAHOO.util.Dom.get(data_div).innerHTML=o.responseText; YAHOO.util.Event.addListener(YAHOO.util.Dom.getElementsByClassName('pager_link'),"click",function(){ YAHOO.util.Dom.setStyle(data_div,'opacity','0.3');}); YAHOO.util.Dom.setStyle(data_div,'opacity','1');}},null); return false;""")}</td> </tr> </table>