From bc41329f2a22c496252319d28536fac1bfba0902 Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sat, 21 Jun 2008 08:56:32 +0000 Subject: [PATCH] cosmectics:queue --- deluge/ui/webui/templates/advanced/part_torrent_list.html | 7 ++++++- deluge/ui/webui/templates/deluge/tab_details.html | 8 +++++++- deluge/ui/webui/templates/deluge/tab_statistics.html | 7 ++++++- deluge/ui/webui/torrent_options.py | 2 +- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/deluge/ui/webui/templates/advanced/part_torrent_list.html b/deluge/ui/webui/templates/advanced/part_torrent_list.html index 8a72b6d14..cd20460b5 100644 --- a/deluge/ui/webui/templates/advanced/part_torrent_list.html +++ b/deluge/ui/webui/templates/advanced/part_torrent_list.html @@ -48,7 +48,12 @@ $for torrent in torrent_list: name="pauseresume" value="submit" /> - $torrent.queue + + $if (torrent.queue == -1): + ∞ + $else: + $(torrent.queue + 1) + $(crop(torrent.name, 30)) $fsize(torrent.total_size) diff --git a/deluge/ui/webui/templates/deluge/tab_details.html b/deluge/ui/webui/templates/deluge/tab_details.html index 0d92810e5..b1baeb2a1 100644 --- a/deluge/ui/webui/templates/deluge/tab_details.html +++ b/deluge/ui/webui/templates/deluge/tab_details.html @@ -1,7 +1,7 @@ $def with (torrent) - +
 
@@ -20,6 +20,12 @@ $def with (torrent) + + + + + +
$('Name'):
$('Save Path'): $crop_left(torrent.save_path, 200)
$_('Private'):$torrent.private
diff --git a/deluge/ui/webui/templates/deluge/tab_statistics.html b/deluge/ui/webui/templates/deluge/tab_statistics.html index 866d0c73d..b5576378b 100644 --- a/deluge/ui/webui/templates/deluge/tab_statistics.html +++ b/deluge/ui/webui/templates/deluge/tab_statistics.html @@ -63,7 +63,12 @@ $fspeed(torrent.download_payload_rate) $torrent.next_announce $_('Queue Position'): -$torrent.queue + +$if (torrent.queue == -1): + ∞ +$else: + $(torrent.queue + 1) + $_('Allocation'): diff --git a/deluge/ui/webui/torrent_options.py b/deluge/ui/webui/torrent_options.py index b7b547676..7e2f3ff75 100644 --- a/deluge/ui/webui/torrent_options.py +++ b/deluge/ui/webui/torrent_options.py @@ -21,7 +21,7 @@ class TorrentOptionsForm(forms.Form): #general prioritize_first_last = forms.CheckBox( _('Prioritize first and last pieces [TODO!]')) - private = forms.CheckBox(_('Private')) + #private = forms.CheckBox(_('Private')) class torrent_options: @deco.check_session