diff --git a/deluge/ui/webui/pages.py b/deluge/ui/webui/pages.py index e4987d322..7858a0982 100644 --- a/deluge/ui/webui/pages.py +++ b/deluge/ui/webui/pages.py @@ -188,6 +188,11 @@ class torrent_delete: route("/torrent/delete/(.*)",torrent_delete) class torrent_files: + @deco.deluge_page + @deco.torrent + def GET(self,torrent): + return render.torrent_files(torrent, None) + @deco.check_session @deco.torrent def POST(self, torrent): diff --git a/deluge/ui/webui/render.py b/deluge/ui/webui/render.py index d37970a8d..177cb3ae1 100644 --- a/deluge/ui/webui/render.py +++ b/deluge/ui/webui/render.py @@ -60,7 +60,7 @@ class subclassed_render(object): self.cfg_template = config.get('template') template_path = os.path.join(self.webui_path, 'templates/%s/' % self.cfg_template) if not os.path.exists(template_path): - template_path = os.path.join(self.webui_path, 'templates/deluge/') + template_path = os.path.join(self.webui_path, 'templates/white/') self.meta = Storage(eval(open(os.path.join(template_path,'meta.cfg')).read())) #load renerders diff --git a/deluge/ui/webui/templates/deluge/tab_files.html b/deluge/ui/webui/templates/deluge/tab_files.html index c67425667..27d780dd0 100644 --- a/deluge/ui/webui/templates/deluge/tab_files.html +++ b/deluge/ui/webui/templates/deluge/tab_files.html @@ -1,6 +1,10 @@ -$def with (torrent) +$def with (torrent, redirect=None)
- +$if redirect: + +$else: + + $altrow(True) diff --git a/deluge/ui/webui/templates/deluge/torrent_add.html b/deluge/ui/webui/templates/deluge/torrent_add.html index 82a988227..4a5f59e86 100644 --- a/deluge/ui/webui/templates/deluge/torrent_add.html +++ b/deluge/ui/webui/templates/deluge/torrent_add.html @@ -12,59 +12,13 @@ $if error:
$:add_form.as_table()
- - - - $_('Options')