diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/cgi_error.tmpl | 12 | ||||
-rw-r--r-- | templates/patch_view.tmpl | 19 |
2 files changed, 31 insertions, 0 deletions
diff --git a/templates/cgi_error.tmpl b/templates/cgi_error.tmpl new file mode 100644 index 0000000..6b39f2e --- /dev/null +++ b/templates/cgi_error.tmpl @@ -0,0 +1,12 @@ +#import templates +#extends templates.skeleton +#from cgi import escape +#def title +Oh noes! Error! +#end def +#def body + <h1>There was an error processing ur request</h1> + <div> + $escape($error) + </div> +#end def 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 |