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.tmpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/patch_view.tmpl b/templates/patch_view.tmpl
new file mode 100644
index 0000000..b3f645e
--- /dev/null
+++ b/templates/patch_view.tmpl
@@ -0,0 +1,19 @@
+#import templates
+#extends templates.skeleton
+#import pygments
+#from pygments.lexers import DiffLexer
+#from pygments.formatters import HtmlFormatter
+#def title
+Patch information for $package / $version / $name
+#end def
+#def body
+ <h1>$package / $version / $name</h1>
+ <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))
+ </div>
+#end def