diff options
author | Sean Finney <seanius@debian.org> | 2008-06-11 21:47:17 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-06-11 21:47:17 +0200 |
commit | a1c489e00ec4ead9f5c55dd95d94b6b9e0602306 (patch) | |
tree | e384c3d7caa1e6838fd0cc79baa9706a1e9ae2ee /templates | |
parent | 6a70f64a3cac69d9d6dc8346ad845db07f6c1dc5 (diff) | |
download | patch-tracker-a1c489e00ec4ead9f5c55dd95d94b6b9e0602306.tar.gz |
further cgi related fixes
Diffstat (limited to 'templates')
-rw-r--r-- | templates/patch_view.tmpl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/patch_view.tmpl b/templates/patch_view.tmpl index b3f645e..ae1e64c 100644 --- a/templates/patch_view.tmpl +++ b/templates/patch_view.tmpl @@ -3,17 +3,25 @@ #import pygments #from pygments.lexers import DiffLexer #from pygments.formatters import HtmlFormatter +#from cgi import escape #def title Patch information for $package / $version / $name #end def #def body <h1>$package / $version / $name</h1> + <h2>Summary</h2> + <div> + <pre><code class="diffstat"> +$escape($patch.diffstat) + </code></pre> + </div> <div> <a href="$conf.archive_root_url/patch/series/dl/$package/$version/$name"> download this patch </a> </div> - <div class=patch> - $pygments.highlight($patch, $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True)) + <h2>Patch contents</h2> + <div class="patch"> + $pygments.highlight($str($patch), $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True, encoding='utf-8')) </div> #end def |