comparison pylons_app/templates/files/files_source.html @ 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 f905f45c457e
children be4621c6de58
comparison
equal deleted inserted replaced
166:664cc7341278 167:e5a25c57c97f
1 <dl class="overview"> 1 <dl class="overview">
2 <dt>${_('Revision')}</dt> 2 <dt>${_('Revision')}</dt>
3 <dd>r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</dd> 3 <dd>r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</dd>
4 <dt>${_('Size')}</dt> 4 <dt>${_('Size')}</dt>
5 <dd>${h.filesizeformat(c.files_list.size)}</dd> 5 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd>
6 <dt>${_('Options')}</dt> 6 <dt>${_('Options')}</dt>
7 <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> 7 <dd>${h.link_to(_('annotate'),
8 h.url('files_annotate_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))} / ${h.link_to(_('raw'),
9 h.url('files_raw_home',repo_name=c.repo_name,revision=c.cur_rev,f_path=c.f_path))}</dd>
8 <dt>${_('History')}</dt> 10 <dt>${_('History')}</dt>
9 <dd> 11 <dd>
10 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')} 12 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}
11 ${h.hidden('diff2',c.files_list.last_changeset._short)} 13 ${h.hidden('diff2',c.files_list.last_changeset._short)}
12 ${h.select('diff1','',c.file_history)} 14 ${h.select('diff1','',c.file_history)}