Changeset - e5a25c57c97f
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 15 years ago 2010-05-21 02:12:41
marcin@python-works.com
files source updated to use webhelpers huminizer for file size, and added link to annotation
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pylons_app/templates/files/files_source.html
Show inline comments
 
<dl class="overview">
 
	<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')}
 
		${h.hidden('diff2',c.files_list.last_changeset._short)}
 
		${h.select('diff1','',c.file_history)}
 
		${h.submit('diff','diff')}
 
		${h.end_form()}
 
	</dd>
 
					
 
</dl>		
 
<div id="body" class="codeblock">
 
	<div class="code-header">
0 comments (0 inline, 0 general)