From a038ca8df8734706c958d79bdfcaefb2b93937c5 Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Fri, 26 Sep 2008 16:21:00 +0000 Subject: [PATCH] webui statusbar:add space,has_incoming_connections --- .../webui/static/images/tango/drive-harddisk.png | Bin 0 -> 603 bytes deluge/ui/webui/templates/white/header.html | 2 +- deluge/ui/webui/templates/white/part_stats.html | 9 ++++++++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 deluge/ui/webui/static/images/tango/drive-harddisk.png diff --git a/deluge/ui/webui/static/images/tango/drive-harddisk.png b/deluge/ui/webui/static/images/tango/drive-harddisk.png new file mode 100644 index 0000000000000000000000000000000000000000..5c3b8587f46fa03111cef37143e4c3386923b195 GIT binary patch literal 603 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7*pj^6T^Rm@;DWu&Co?cG za29w(7Bet#3xhBt!>l{nS>`As=qpRXxrU|{Geag8W(&d<$F%`0K> zP0cISEzYb;O;N~9&d=krg##`wjbu#)BLf3t1+T>H(j*1-tjyfp#AJ1a;F8qLywoBc z1+I*ek^(DzeTal!ZfS95azBYQF?mUad!p=#sE(j#}JFtODFs09WoGT-M_$LiNfiVYFR4Z3d~iG@ZP#N zK~&vA=Z0gBz|Wa4l^$rkT@*UA^{wRj>N?|X4_&*>ZhvL}@X!B``s}w+|C7&I-p#o# z#oWR1{Ig_es|M56jXn< zz_h}S;Z(51D%*`0R`YU&oc!E#`Q?}8=Talxu9q_S%yWD$;~MyfORuYG*Sco;SughT zb240iJ$2P827_Z0mT68t*>d`6(|5V#GY%6}IJ=J~l}y?ymaWThulm)lXJxzp28b}f zDYKrnOfq*%uD8tb#J_hx*~ouikQ@E&x9#!A6IZPY2o0I4;%OnnCy{*U&78xQ<^n6U zln&L*Gn(snSeY?n7TeT$KCZv+9OrEj+N5(h$~$rz!=3l#4Hw=%&Fbvf5VKZ5@ZKq- hDSv*YS6$u5Fg^6G+P0jn+zbp144$rjF6*2UngDS7?kE5N literal 0 HcmV?d00001 diff --git a/deluge/ui/webui/templates/white/header.html b/deluge/ui/webui/templates/white/header.html index 1614ced4a..af89526e0 100644 --- a/deluge/ui/webui/templates/white/header.html +++ b/deluge/ui/webui/templates/white/header.html @@ -43,7 +43,7 @@ $for id, title, url in admin_pages: - + $:part_stats() diff --git a/deluge/ui/webui/templates/white/part_stats.html b/deluge/ui/webui/templates/white/part_stats.html index e72779947..8cab5f7db 100644 --- a/deluge/ui/webui/templates/white/part_stats.html +++ b/deluge/ui/webui/templates/white/part_stats.html @@ -1,8 +1,8 @@ $def with (stats) -
+ $stats.num_connections ($deluge_int(stats.max_num_connections)) $stats.download_rate ($deluge_int(stats.max_download)) @@ -11,4 +11,11 @@ $def with (stats) $stats.dht_nodes +$fsize(stats.free_space) + +$if stats.has_incoming_connections: +$else: + + +