Mercurial > kallithea
diff rhodecode/templates/files/files_source.html @ 644:c8bd0e6cc3da beta
some changes for #45.
Added warning messages for browsing wrong cs/paths
Cleanup of codes
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 02 Nov 2010 23:28:37 +0100 |
parents | ffd07396d315 |
children | 4a7432d0a1a5 |
line wrap: on
line diff
--- a/rhodecode/templates/files/files_source.html Tue Nov 02 22:26:50 2010 +0100 +++ b/rhodecode/templates/files/files_source.html Tue Nov 02 23:28:37 2010 +0100 @@ -10,11 +10,11 @@ <dd>${c.files_list.mimetype}</dd> <dt>${_('Options')}</dt> <dd>${h.link_to(_('show annotation'), - h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} + h.url('files_annotate_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))} / ${h.link_to(_('show as raw'), - h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} + h.url('files_raw_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))} / ${h.link_to(_('download as raw'), - h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} + h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))} </dd> <dt>${_('History')}</dt> <dd> @@ -40,7 +40,7 @@ ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} %else: ${_('File is to big to display')} ${h.link_to(_('show as raw'), - h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} + h.url('files_raw_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))} %endif </div> </div>