From a69ed83e25075594cf9bce207a4ebca9ddd24a8e Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 25 Feb 2010 19:43:01 +0000 Subject: [PATCH] begin adding support for a base config parameter --- deluge/ui/web/index.html | 10 +++++----- deluge/ui/web/server.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deluge/ui/web/index.html b/deluge/ui/web/index.html index d0fed9d63..41663937d 100644 --- a/deluge/ui/web/index.html +++ b/deluge/ui/web/index.html @@ -3,23 +3,23 @@ Deluge: Web UI ${version} - - + + % for stylesheet in stylesheets: - + % endfor % for script in scripts: - + % endfor -
+
diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index a6c1152fd..a71268b12 100644 --- a/deluge/ui/web/server.py +++ b/deluge/ui/web/server.py @@ -450,7 +450,6 @@ class TopLevel(resource.Resource): return resource.Resource.getChild(self, path, request) def render(self, request): - debug = False if 'debug' in request.args: debug_arg = request.args.get('debug')[-1] @@ -474,9 +473,10 @@ class TopLevel(resource.Resource): else: scripts = self.scripts[:] + base = request.args.get('base', [''])[-1] template = Template(filename=rpath("index.html")) request.setHeader("content-type", "text/html; charset=utf-8") - return template.render(scripts=scripts, stylesheets=self.stylesheets, debug=debug) + return template.render(scripts=scripts, stylesheets=self.stylesheets, debug=debug, base=base) class ServerContextFactory: