Show More
@@ -39,11 +39,11 b'' | |||||
39 | <dd>${c.file.mimetype}</dd> |
|
39 | <dd>${c.file.mimetype}</dd> | |
40 | <dt>${_('Options')}</dt> |
|
40 | <dt>${_('Options')}</dt> | |
41 | <dd>${h.link_to(_('show source'), |
|
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 | / ${h.link_to(_('show as raw'), |
|
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 | / ${h.link_to(_('download as raw'), |
|
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 | </dd> |
|
47 | </dd> | |
48 | <dt>${_('History')}</dt> |
|
48 | <dt>${_('History')}</dt> | |
49 | <dd> |
|
49 | <dd> | |
@@ -71,6 +71,16 b'' | |||||
71 | %endif |
|
71 | %endif | |
72 | </div> |
|
72 | </div> | |
73 | </div> |
|
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 | </div> |
|
84 | </div> | |
75 | </div> |
|
85 | </div> | |
76 | </div> |
|
86 | </div> |
General Comments 0
You need to be logged in to leave comments.
Login now