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.tmpl33
1 files changed, 0 insertions, 33 deletions
diff --git a/templates/patch_view.tmpl b/templates/patch_view.tmpl
deleted file mode 100644
index 0a715b9..0000000
--- a/templates/patch_view.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-#import templates
-#extends templates.skeleton
-#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>
- <code class="diffstat">
- <pre>
-$escape($str($patch.diffstat))
- </pre>
- </code>
- </div>
- <div>
- <a href="$conf.root_url/patch/$patchtype/dl/$package/$version/$name">
- download this patch
- </a>
- </div>
- <h2>Patch contents</h2>
- <div class="patch">
- #try
- $pygments.highlight($str($patch).decode('utf-8'), $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True, encoding='utf-8'))
- #except UnicodeDecodeError
- $pygments.highlight($str($patch).decode('latin-1'), $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True, encoding='latin-1'))
- #end try
- </div>
-#end def