# HG changeset patch # User Marcin Kuzminski # Date 1274400761 -7200 # Node ID e5a25c57c97f05469f4c9c4463b159b9b7026875 # Parent 664cc73412786cb4d6440052e7ff32eca7c61747 files source updated to use webhelpers huminizer for file size, and added link to annotation diff -r 664cc7341278 -r e5a25c57c97f pylons_app/templates/files/files_source.html --- 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 @@
${_('Revision')}
r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}
${_('Size')}
-
${h.filesizeformat(c.files_list.size)}
+
${h.format_byte_size(c.files_list.size,binary=True)}
${_('Options')}
-
${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))}
+
${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))}
${_('History')}
${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}