Show More
@@ -39,11 +39,11 b'' | |||
|
39 | 39 | <dd>${c.file.mimetype}</dd> |
|
40 | 40 | <dt>${_('Options')}</dt> |
|
41 | 41 | <dd>${h.link_to(_('show source'), |
|
42 |
h.url('files_home',repo_name=c.repo_name,revision=c.cs.r |
|
|
42 | h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} | |
|
43 | 43 | / ${h.link_to(_('show as raw'), |
|
44 |
h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.r |
|
|
44 | h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} | |
|
45 | 45 | / ${h.link_to(_('download as raw'), |
|
46 |
h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.r |
|
|
46 | h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path))} | |
|
47 | 47 | </dd> |
|
48 | 48 | <dt>${_('History')}</dt> |
|
49 | 49 | <dd> |
@@ -71,6 +71,16 b'' | |||
|
71 | 71 | %endif |
|
72 | 72 | </div> |
|
73 | 73 | </div> |
|
74 | <script type="text/javascript"> | |
|
75 | YAHOO.util.Event.onDOMReady(function(){ | |
|
76 | YAHOO.util.Event.addListener('show_rev','click',function(e){ | |
|
77 | YAHOO.util.Event.preventDefault(e); | |
|
78 | var cs = YAHOO.util.Dom.get('diff1').value; | |
|
79 | var url = "${h.url('files_annotate_home',repo_name=c.repo_name,revision='__CS__',f_path=c.f_path)}".replace('__CS__',cs); | |
|
80 | window.location = url; | |
|
81 | }); | |
|
82 | }); | |
|
83 | </script> | |
|
74 | 84 | </div> |
|
75 | 85 | </div> |
|
76 | 86 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now