comparison pylons_app/templates/files/files_source.html @ 512:d945c95ba4ac

refactoring for new vcs implementation renamed all ._short and .raw_id into .short_id updated dependency for vcs to 0.1.6
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 28 Sep 2010 20:25:58 +0000
parents 15f837c62fa5
children
comparison
equal deleted inserted replaced
511:0fce1f9e4dce 512:d945c95ba4ac
1 <dl> 1 <dl>
2 <dt>${_('Last revision')}</dt> 2 <dt>${_('Last revision')}</dt>
3 <dd> 3 <dd>
4 ${h.link_to("r%s:%s" % (c.files_list.last_changeset.revision,c.files_list.last_changeset._short), 4 ${h.link_to("r%s:%s" % (c.files_list.last_changeset.revision,c.files_list.last_changeset.short_id),
5 h.url('files_home',repo_name=c.repo_name,revision=c.files_list.last_changeset._short,f_path=c.f_path))} 5 h.url('files_home',repo_name=c.repo_name,revision=c.files_list.last_changeset.short_id,f_path=c.f_path))}
6 </dd> 6 </dd>
7 <dt>${_('Size')}</dt> 7 <dt>${_('Size')}</dt>
8 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd> 8 <dd>${h.format_byte_size(c.files_list.size,binary=True)}</dd>
9 <dt>${_('Mimetype')}</dt> 9 <dt>${_('Mimetype')}</dt>
10 <dd>${c.files_list.mimetype}</dd> 10 <dd>${c.files_list.mimetype}</dd>
18 </dd> 18 </dd>
19 <dt>${_('History')}</dt> 19 <dt>${_('History')}</dt>
20 <dd> 20 <dd>
21 <div> 21 <div>
22 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')} 22 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='get')}
23 ${h.hidden('diff2',c.files_list.last_changeset._short)} 23 ${h.hidden('diff2',c.files_list.last_changeset.short_id)}
24 ${h.select('diff1',c.files_list.last_changeset._short,c.file_history)} 24 ${h.select('diff1',c.files_list.last_changeset.short_id,c.file_history)}
25 ${h.submit('diff','diff to revision',class_="ui-button ui-widget ui-state-default ui-corner-all")} 25 ${h.submit('diff','diff to revision',class_="ui-button ui-widget ui-state-default ui-corner-all")}
26 ${h.submit('show_rev','show at revision',class_="ui-button ui-widget ui-state-default ui-corner-all")} 26 ${h.submit('show_rev','show at revision',class_="ui-button ui-widget ui-state-default ui-corner-all")}
27 ${h.end_form()} 27 ${h.end_form()}
28 </div> 28 </div>
29 </dd> 29 </dd>
30 </dl> 30 </dl>
31 31
32 32
33 <div id="body" class="codeblock"> 33 <div id="body" class="codeblock">
34 <div class="code-header"> 34 <div class="code-header">
35 <div class="revision">${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</div> 35 <div class="revision">${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset.short_id}</div>
36 <div class="commit">"${c.files_list.last_changeset.message}"</div> 36 <div class="commit">"${c.files_list.last_changeset.message}"</div>
37 </div> 37 </div>
38 <div class="code-body"> 38 <div class="code-body">
39 % if c.files_list.size < c.file_size_limit: 39 % if c.files_list.size < c.file_size_limit:
40 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")} 40 ${h.pygmentize(c.files_list,linenos=True,anchorlinenos=True,lineanchors='S',cssclass="code-highlight")}