comparison pylons_app/templates/files/files_source.html @ 148:d928d5f0a251

Adde raw file to routes, and refactoring updated link to raw file at file source template
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 11 May 2010 22:23:16 +0200
parents ea89ac73bef8
children f905f45c457e
comparison
equal deleted inserted replaced
147:873fd2dc62c2 148:d928d5f0a251
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.filesizeformat(c.files_list.size)}</dd>
6 <dt>${_('Options')}</dt> 6 <dt>${_('Options')}</dt>
7 <dd>${h.link_to(_('annotate'),h.url('#'))} / ${h.link_to(_('raw'),h.url('#'))}</dd> 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>
8 <dt>${_('History')}</dt> 8 <dt>${_('History')}</dt>
9 <dd> 9 <dd>
10 ${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')} 10 ${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)} 11 ${h.hidden('diff2',c.files_list.last_changeset._short)}
12 ${h.select('diff1','',c.file_history)} 12 ${h.select('diff1','',c.file_history)}
16 16
17 </dl> 17 </dl>
18 <div id="body" class="codeblock"> 18 <div id="body" class="codeblock">
19 <div class="code-header"> 19 <div class="code-header">
20 <span>${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</span> 20 <span>${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</span>
21 <span style="font-size:70%">"${c.file_msg}"</span>
21 </div> 22 </div>
22 <div class="code-body"> 23 <div class="code-body">
23 ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")} 24 ${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")}
24 </div> 25 </div>
25 </div> 26 </div>