Show More
@@ -17,8 +17,9 b'' | |||||
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', |
|
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> | |
@@ -33,4 +34,15 b'' | |||||
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> No newline at end of file |
|
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> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now