-
${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.file.path)}
+
${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cur_rev,c.file.path)}
- ${_('Last revision')}
- ${h.link_to("r%s:%s" % (c.file.last_changeset.revision,c.file.last_changeset._short),
h.url('files_annotate_home',repo_name=c.repo_name,revision=c.file.last_changeset._short,f_path=c.f_path))}
- ${_('Size')}
- ${h.format_byte_size(c.file.size,binary=True)}
+ - ${_('Mimetype')}
+ - ${c.file.mimetype}
- ${_('Options')}
- ${h.link_to(_('show source'),
h.url('files_home',repo_name=c.repo_name,revision=c.cur_rev,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.link_to(_('download as raw'),
- h.url('files_raw_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.cur_rev,f_path=c.f_path))}
@@ -43,7 +47,12 @@
"${c.file_msg}"
- ${h.pygmentize_annotation(c.file,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}
+ % if c.file.size < c.file_size_limit:
+ ${h.pygmentize_annotation(c.file,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))}
+ %endif