From a1c489e00ec4ead9f5c55dd95d94b6b9e0602306 Mon Sep 17 00:00:00 2001 From: Sean Finney Date: Wed, 11 Jun 2008 21:47:17 +0200 Subject: further cgi related fixes --- templates/patch_view.tmpl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'templates') 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

$package / $version / $name

+

Summary

+
+

+$escape($patch.diffstat)
+  
+
download this patch
-
- $pygments.highlight($patch, $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True)) +

Patch contents

+
+ $pygments.highlight($str($patch), $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True, encoding='utf-8'))
#end def -- cgit v1.2.3