diff 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
line wrap: on
line diff
--- a/pylons_app/templates/files/files_source.html	Tue May 11 22:07:43 2010 +0200
+++ b/pylons_app/templates/files/files_source.html	Tue May 11 22:23:16 2010 +0200
@@ -4,7 +4,7 @@
 	<dt>${_('Size')}</dt>
 	<dd>${h.filesizeformat(c.files_list.size)}</dd>
 	<dt>${_('Options')}</dt>
-	<dd>${h.link_to(_('annotate'),h.url('#'))}  / ${h.link_to(_('raw'),h.url('#'))}</dd>
+	<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>
 	<dt>${_('History')}</dt>
 	<dd>
 		${h.form(h.url('files_diff_home',repo_name=c.repo_name,f_path=c.f_path),method='GET')}
@@ -18,6 +18,7 @@
 <div id="body" class="codeblock">
 	<div class="code-header">
 		<span>${c.files_list.name}@r${c.files_list.last_changeset.revision}:${c.files_list.last_changeset._short}</span>
+		 <span style="font-size:70%">"${c.file_msg}"</span>
 	</div>
 	<div class="code-body">
 		${h.pygmentize(c.files_list.content,linenos=True,anchorlinenos=True,cssclass="code-highlight")}