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: