summaryrefslogtreecommitdiff
path: root/templates/patch_view.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/patch_view.tmpl')
-rw-r--r--templates/patch_view.tmpl12
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