From 6fc1e23fce0f95b21e60efffcff7794bfbaca7c9 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Mon, 14 Sep 2009 16:24:47 +0000 Subject: [PATCH] indicate whether the UI is in debug mode via an additional script tag in the index page --- deluge/ui/web/index.html | 11 +++++++---- deluge/ui/web/server.py | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/deluge/ui/web/index.html b/deluge/ui/web/index.html index ef4b07df3..0eb3b7cef 100644 --- a/deluge/ui/web/index.html +++ b/deluge/ui/web/index.html @@ -7,14 +7,17 @@ - %for stylesheet in stylesheets: + % for stylesheet in stylesheets: - %endfor + % endfor - %for script in scripts: + % for script in scripts: - %endfor + % endfor +
diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py index 4f82b497f..186852910 100644 --- a/deluge/ui/web/server.py +++ b/deluge/ui/web/server.py @@ -425,7 +425,7 @@ class TopLevel(resource.Resource): template = Template(filename=rpath("index.html")) request.setHeader("content-type", "text/html; charset=utf-8") - return template.render(scripts=scripts, stylesheets=self.stylesheets) + return template.render(scripts=scripts, stylesheets=self.stylesheets, debug=debug) class ServerContextFactory: