Changeset - 00b17b3a0978
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 16 years ago 2010-04-18 11:27:25
marcin@python-blog.com
html update
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pylons_app/templates/shortlog_data.html
Show inline comments
 
## -*- 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',
 
		<td colspan=3>${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>	
 
\ No newline at end of file
0 comments (0 inline, 0 general)