summaryrefslogtreecommitdiff
path: root/templates/patch_view.tmpl
blob: f4d68e8fde52c58008a00a0affebf75039d443b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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>
  <pre><code class="diffstat">
$escape($str($patch.diffstat))
  </code></pre>
 </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">
  $pygments.highlight($str($patch), $DiffLexer(), $HtmlFormatter(style='colorful', noclasses=True, encoding='utf-8'))
 </div>
#end def