Mercurial > public > src > rhodecode
changeset 539:15f837c62fa5 celery
added mimetypes to files
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 22 Sep 2010 16:24:07 +0200 |
parents | b4d9680cd164 |
children | 47f4c7ff245b |
files | pylons_app/templates/files/files_browser.html pylons_app/templates/files/files_source.html |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pylons_app/templates/files/files_browser.html Wed Sep 22 04:31:21 2010 +0200 +++ b/pylons_app/templates/files/files_browser.html Wed Sep 22 16:24:07 2010 +0200 @@ -23,6 +23,7 @@ <tr> <th>${_('Name')}</th> <th>${_('Size')}</th> + <th>${_('Mimetype')}</th> <th>${_('Revision')}</th> <th>${_('Last modified')}</th> <th>${_('Last commiter')}</th> @@ -50,6 +51,11 @@ %endif </td> <td> + %if node.is_file(): + ${node.mimetype} + %endif + </td> + <td> %if node.is_file(): ${node.last_changeset.revision} %endif
--- a/pylons_app/templates/files/files_source.html Wed Sep 22 04:31:21 2010 +0200 +++ b/pylons_app/templates/files/files_source.html Wed Sep 22 16:24:07 2010 +0200 @@ -6,6 +6,8 @@ </dd> <dt>${_('Size')}</dt> <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd> + <dt>${_('Mimetype')}</dt> + <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))}