From fe9664bce33135c097e6a671e19450909b275dcc Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sun, 22 Jun 2008 21:03:51 +0000 Subject: [PATCH] queue bottom/top --- deluge/ui/webui/pages.py | 3 +++ deluge/ui/webui/register_menu.py | 6 ++++-- deluge/ui/webui/static/images/tango/go-bottom.png | Bin 0 -> 663 bytes deluge/ui/webui/static/images/tango/go-top.png | Bin 0 -> 636 bytes deluge/ui/webui/torrent_move.py | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 deluge/ui/webui/static/images/tango/go-bottom.png create mode 100644 deluge/ui/webui/static/images/tango/go-top.png diff --git a/deluge/ui/webui/pages.py b/deluge/ui/webui/pages.py index e594b8f16..4a55fb65e 100644 --- a/deluge/ui/webui/pages.py +++ b/deluge/ui/webui/pages.py @@ -144,6 +144,9 @@ reg_torrents_POST("recheck", "force_recheck") reg_torrents_POST("reannounce", "force_reannounce") reg_torrents_POST("queue/up", "queue_up") reg_torrents_POST("queue/down", "queue_down") +reg_torrents_POST("queue/top", "queue_top") +reg_torrents_POST("queue/bottom", "queue_bottom") + class torrent_info: @deco.deluge_page diff --git a/deluge/ui/webui/register_menu.py b/deluge/ui/webui/register_menu.py index 552f6eccc..2f73c096c 100644 --- a/deluge/ui/webui/register_menu.py +++ b/deluge/ui/webui/register_menu.py @@ -52,8 +52,10 @@ menu.register_toolbar_item("add", _("Add"), "list-add.png" , TB.generic, "GET"," menu.register_toolbar_item("delete",_("Delete"), "list-remove.png" ,TB.torrent_list, "GET","/torrent/delete/" , True) menu.register_toolbar_item("stop",_("Stop"), "pause.png" ,TB.torrent_list, "POST","/torrent/stop/", True) menu.register_toolbar_item("start",_("Start"), "start.png" ,TB.torrent_list, "POST","/torrent/start/", True) -menu.register_toolbar_item("queue_up",_("Up"), "queue-up.png" ,TB.torrent_list, "POST","/torrent/queue/up/", True) -menu.register_toolbar_item("queue_down",_("Down"), "queue-down.png" ,TB.torrent_list, "POST","/torrent/queue/down/", True) +menu.register_toolbar_item("queue_up",_("Queue Up"), "queue-up.png" ,TB.torrent_list, "POST","/torrent/queue/up/", True) +menu.register_toolbar_item("queue_down",_("Queue Down"), "queue-down.png" ,TB.torrent_list, "POST","/torrent/queue/down/", True) +menu.register_toolbar_item("queue_top",_("Queue Top"), "go-top.png" ,TB.torrent_list, "POST","/torrent/queue/top/", True) +menu.register_toolbar_item("queue_bottom",_("Queue Down"), "go-bottom.png" ,TB.torrent_list, "POST","/torrent/queue/bottom/", True) menu.register_toolbar_item("details",_("Details"), "details.png" ,TB.torrent, "GET","/torrent/info/", True) menu.register_toolbar_item("move",_("Move"), "move.png" ,TB.torrent_list,"POST","/torrent/move/", True) menu.register_toolbar_item("reannounce",_("Reannounce"), "view-refresh.png" ,TB.torrent_list, "POST","/torrent/reannounce/", False) diff --git a/deluge/ui/webui/static/images/tango/go-bottom.png b/deluge/ui/webui/static/images/tango/go-bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..2c5a80385cca2f80f829819f25e943bee4fbb759 GIT binary patch literal 663 zcmV;I0%-k-P)^@R5*>5 zQafl0i$fhnu!z>dT@ZRl2cb)*4pLDG zZG=odu7yxbG&DksLWh*3HCi!E@4f%ybBM&$q+$>J%i-gE|2f}bM1)ohPMBp7qUZ#M ziZjW3S}CJ#h!C}JK7mjILiv!2Lnsa|Jv>a^ZWC@70Kk}r+-e%0*oG^%;PEY-Ju=$y zQ(8wB42=DLU;tx~itk0BkqZ%lKmgIM0>;oi(;G18uk)G8m+}(D!pA`x$GW$IlKT-XC=du~Fhe@}W5cL!R;jp>uMpvSGepPcH4u{1 zFCV)GvtXJgHvG>pEgb<%Lm;Fh9zKRhs1Mm!vo0wl9h=v7T*0wCML#^(K9-8dDwfOPh0opXQOv3a5686BHXl{Qv0xety%&@%$fU@!t2&O}F$dq3~5 zSJ&non@{aHV_O3h#uf_mOTDqf@uT4c(+v&P(of1QI%OprzW-Sy$L2MXNX}+oxQB2O x2h<5XpL^yi`NwxFSmKUBf0KK`E>-@2`~s>b4Ju;H8xa5i002ovPDHLkV1l6R8=C+C literal 0 HcmV?d00001 diff --git a/deluge/ui/webui/static/images/tango/go-top.png b/deluge/ui/webui/static/images/tango/go-top.png new file mode 100644 index 0000000000000000000000000000000000000000..70f2c996cd72a79328be5bd0ef9b39cc86be7086 GIT binary patch literal 636 zcmV-?0)zdDP)L zlTS!gQ51)N=l*%UXM%2Q)F>(p+zgmdf)8?0hB*|-MC$(Y7uSP)<6hBvp%pb#VTA`mW=f8m3=A+VF$gz+5g|*fW9a=~fVCub#hVuLlKG!y<+UFWVr@ zx}I*`6F`LLL;b0)!-tO1O8E;`N}ti*)<%831DzmD?+S1|ojsB`IeM-?t-lsNLXv_Y zi4Wgq(ARs$>S*s8bv>PJ3UEE0w6rsoxp>?8Sy_bP08%N`;|ezT7d{op$Nz_$1Jr8{;^A=dpOl#Zx*NxBimVOIKWYqfyp}XTIm^nr{$U_L)(rG}9&-Pp{q+Q