changeset 167:e5a25c57c97f

files source updated to use webhelpers huminizer for file size, and added link to annotation
author Marcin Kuzminski <marcin@python-works.com>
date Fri, 21 May 2010 02:12:41 +0200
parents 664cc7341278
children e35210568664
files pylons_app/templates/files/files_source.html
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/templates/files/files_source.html	Fri May 21 02:10:33 2010 +0200
+++ b/pylons_app/templates/files/files_source.html	Fri May 21 02:12:41 2010 +0200
@@ -2,9 +2,11 @@
 	<dt>${_('Revision')}</dt>
 	<dd>r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</dd>
 	<dt>${_('Size')}</dt>
-	<dd>${h.filesizeformat(c.files_list.size)}</dd>
+	<dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd>
 	<dt>${_('Options')}</dt>
-	<dd>${h.link_to(_('annotate'),h.url('#'))}  / ${h.link_to(_('raw'),h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd>
+	<dd>${h.link_to(_('annotate'),
+	h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}  / ${h.link_to(_('raw'),
+	h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd>
 	<dt>${_('History')}</dt>
 	<dd>
 		${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}