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!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmP$3oE}V$LsSoA@P?#{r#7~tvR7-DgH>15x$Lk0q^`xiJYQ8;~4ElcHFfw{^N-dp!3h^jm2+;Geh z_&M{X(gTgRi$Z6%zLh**U1z-Qp=-CMr~fm{!;^oC=m$ zWxMghYF@68lb?Gozx=ZNTxz7-^->0(d5+IzTm%1b>2)>jTGuQ;>&0GvPKN8Rr>|vUM5mRlnNxtZet+01@UlW!AHnN#<_J z^_DrF`1kH78~N`Ga-+ZfwmtrM;;K~vp&?UMJS}ASB$5xknRD3ETwsNk(xIApMsxiR zD>G)yVw*b8$Mx5p-aBP9<&+m^GH8yM#dp00i_>zopr0C4;6C;$Ke 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: + + +