Mercurial > kallithea
comparison rhodecode/templates/files/files_annotate.html @ 695:d49c0fc1b2d7 beta
fixed annotation show_at_revision bug.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 15 Nov 2010 16:50:02 +0100 |
parents | 6199b34d349b |
children | 4a7432d0a1a5 |
comparison
equal
deleted
inserted
replaced
694:bf62855a10d9 | 695:d49c0fc1b2d7 |
---|---|
37 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd> | 37 <dd>${h.format_byte_size(c.file.size,binary=True)}</dd> |
38 <dt>${_('Mimetype')}</dt> | 38 <dt>${_('Mimetype')}</dt> |
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.revision,f_path=c.f_path))} | 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.revision,f_path=c.f_path))} | 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.revision,f_path=c.f_path))} | 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> |
50 <div> | 50 <div> |
51 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} | 51 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} |
69 ${_('File is to big to display')} ${h.link_to(_('show as raw'), | 69 ${_('File is to big to display')} ${h.link_to(_('show as raw'), |
70 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))} | 70 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cs.revision,f_path=c.f_path))} |
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> |
77 </%def> | 87 </%def> |