# HG changeset patch # User Bernhard Herzog # Date 1213008688 0 # Node ID 879a7e391867b6463dd7a91fce5a79bd1a883116 # Parent 4526105f81a7889ac0249eef2cda864aee639e0e Move the default template for the status web page to the new directory web/ and rename it to status-by-revision.html diff -r 4526105f81a7 -r 879a7e391867 treepkg/web-status.html --- a/treepkg/web-status.html Thu Jun 05 12:34:55 2008 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ - - - Tree Packager Status - - - -

Tree Packager Status

- - - - - - - - - - - - - - - - - - - - - - - - - -
Revision${track.name}
${row[0]} - ${col.status.desc}
- Start: ${col.status.start}
- Stop: ${col.status.stop}
- - ${title} -
-
-
- -
- report generated at ${report.date}, - powered by Tree Packager - - - diff -r 4526105f81a7 -r 879a7e391867 treepkg/web.py --- a/treepkg/web.py Thu Jun 05 12:34:55 2008 +0000 +++ b/treepkg/web.py Mon Jun 09 10:51:28 2008 +0000 @@ -23,12 +23,14 @@ def __init__(self, treepkg_config): self.treepkg_config = treepkg_config - self.loader = TemplateLoader([os.path.dirname(__file__)]) + self.loader = TemplateLoader([os.path.join(os.path.dirname(__file__), + os.path.pardir, + "web")]) @expose def index(self): group = report.get_packager_group(self.treepkg_config) - tmpl = self.loader.load('web-status.html') + tmpl = self.loader.load('status-by-revision.html') stream = tmpl.generate(report=report.prepare_report(group)) return stream.render('html')