# HG changeset patch # User Marcin Kuzminski # Date 2010-09-22 14:24:07 # Node ID 15f837c62fa54391ca3cf2d0d132feb1657fff60 # Parent b4d9680cd164e53d0b947d147b4d427cb10a36b1 added mimetypes to files diff --git a/pylons_app/templates/files/files_browser.html b/pylons_app/templates/files/files_browser.html --- a/pylons_app/templates/files/files_browser.html +++ b/pylons_app/templates/files/files_browser.html @@ -23,6 +23,7 @@ ${_('Name')} ${_('Size')} + ${_('Mimetype')} ${_('Revision')} ${_('Last modified')} ${_('Last commiter')} @@ -50,6 +51,11 @@ %endif + %if node.is_file(): + ${node.mimetype} + %endif + + %if node.is_file(): ${node.last_changeset.revision} %endif diff --git a/pylons_app/templates/files/files_source.html b/pylons_app/templates/files/files_source.html --- a/pylons_app/templates/files/files_source.html +++ b/pylons_app/templates/files/files_source.html @@ -6,6 +6,8 @@
${_('Size')}
${h.format_byte_size(c.files_list.size,binary=True)}
+
${_('Mimetype')}
+
${c.files_list.mimetype}
${_('Options')}
${h.link_to(_('show annotation'), h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}