Mercurial > kallithea
comparison pylons_app/templates/files/files_source.html @ 413:0ebec9b88d13
added jump to revision from file history.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 19 Aug 2010 22:38:00 +0200 |
parents | 9a7ae16ff53e |
children | 9836541b0509 |
comparison
equal
deleted
inserted
replaced
412:b6a25169c005 | 413:0ebec9b88d13 |
---|---|
15 <dt>${_('History')}</dt> | 15 <dt>${_('History')}</dt> |
16 <dd> | 16 <dd> |
17 <div> | 17 <div> |
18 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} | 18 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} |
19 ${h.hidden('diff2',c.files_list.last_changeset._short)} | 19 ${h.hidden('diff2',c.files_list.last_changeset._short)} |
20 ${h.select('diff1','',c.file_history)} | 20 ${h.select('diff1',c.files_list.last_changeset._short,c.file_history)} |
21 ${h.submit('diff','diff',class_="ui-button ui-widget ui-state-default ui-corner-all")} | 21 ${h.submit('diff','diff to revision',class_="ui-button ui-widget ui-state-default ui-corner-all")} |
22 ${h.submit('show_rev','show at revision',class_="ui-button ui-widget ui-state-default ui-corner-all")} | |
22 ${h.end_form()} | 23 ${h.end_form()} |
23 </div> | 24 </div> |
24 </dd> | 25 </dd> |
25 </dl> | 26 </dl> |
26 | 27 |
32 </div> | 33 </div> |
33 <div class="code-body"> | 34 <div class="code-body"> |
34 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} | 35 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} |
35 </div> | 36 </div> |
36 </div> | 37 </div> |
38 | |
39 <script type="text/javascript"> | |
40 YAHOO.util.Event.onDOMReady(function(){ | |
41 YAHOO.util.Event.addListener('show_rev','click',function(e){ | |
42 YAHOO.util.Event.preventDefault(e); | |
43 var cs = YAHOO.util.Dom.get('diff1').value; | |
44 var url = "${h.url('files_home',repo_name=c.repo_name,revision='__CS__',f_path=c.f_path)}".replace('__CS__',cs); | |
45 window.location = url; | |
46 }); | |
47 }); | |
48 </script> |