comparison 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
comparison
equal deleted inserted replaced
643:9dc1d92d82ed 644:c8bd0e6cc3da
8 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd> 8 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd>
9 <dt>${_('Mimetype')}</dt> 9 <dt>${_('Mimetype')}</dt>
10 <dd>${c.files_list.mimetype}</dd> 10 <dd>${c.files_list.mimetype}</dd>
11 <dt>${_('Options')}</dt> 11 <dt>${_('Options')}</dt>
12 <dd>${h.link_to(_('show annotation'), 12 <dd>${h.link_to(_('show annotation'),
13 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} 13 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))}
14 / ${h.link_to(_('show as raw'), 14 / ${h.link_to(_('show as raw'),
15 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} 15 h.url('files_raw_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))}
16 / ${h.link_to(_('download as raw'), 16 / ${h.link_to(_('download as raw'),
17 h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} 17 h.url('files_rawfile_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))}
18 </dd> 18 </dd>
19 <dt>${_('History')}</dt> 19 <dt>${_('History')}</dt>
20 <dd> 20 <dd>
21 <div> 21 <div>
22 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} 22 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
38 <div class="code-body"> 38 <div class="code-body">
39 % if c.files_list.size < c.file_size_limit: 39 % if c.files_list.size < c.file_size_limit:
40 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} 40 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
41 %else: 41 %else:
42 ${_('File is to big to display')} ${h.link_to(_('show as raw'), 42 ${_('File is to big to display')} ${h.link_to(_('show as raw'),
43 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} 43 h.url('files_raw_home',repo_name=c.repo_name,revision=c.changeset.raw_id,f_path=c.f_path))}
44 %endif 44 %endif
45 </div> 45 </div>
46 </div> 46 </div>
47 47
48 <script type="text/javascript"> 48 <script type="text/javascript">