diff options
author | Sean Finney <seanius@debian.org> | 2008-06-11 01:05:17 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-06-11 01:05:17 +0200 |
commit | 6a70f64a3cac69d9d6dc8346ad845db07f6c1dc5 (patch) | |
tree | 6d9a50f32d7f89b51cadb688d81e7b8578905a08 /templates | |
parent | 90b32ea02cd73f90f66b9d0698cc6f71a6f77125 (diff) | |
download | patch-tracker-6a70f64a3cac69d9d6dc8346ad845db07f6c1dc5.tar.gz |
initial stab at cgi-based patch generation
complete with many ugly hacks to workaround the lack
of an underlying database. hopefully it's all marked
with XXX for later fixing :)
does not cover all patch cases, in fact currently it only
covers series patch viewing and downloading.
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 |