From 80db26e0e73f7f39b01eca5407e488d7758ca93a Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Wed, 26 Mar 2008 22:39:04 +0000 Subject: [PATCH] webui:css table padding --- .../templates/advanced/part_torrent_list.html | 4 ++-- .../ui/webui/templates/deluge/tab_peers.html | 10 ++++++++-- .../webui/templates/white/part_organize.html | 4 ++-- .../webui/templates/white/template_style.css | 19 ++++++++++++++++++- 4 files changed, 30 insertions(+), 7 deletions(-) diff --git a/deluge/ui/webui/templates/advanced/part_torrent_list.html b/deluge/ui/webui/templates/advanced/part_torrent_list.html index 898d3a8df..df366c0e1 100644 --- a/deluge/ui/webui/templates/advanced/part_torrent_list.html +++ b/deluge/ui/webui/templates/advanced/part_torrent_list.html @@ -83,8 +83,8 @@ $for torrent in torrent_list:   $ftime(torrent.eta) - $("%.3f" % torrent.distributed_copies) - $("%.3f" % torrent.ratio) + $("%.2f" % torrent.distributed_copies) + $("%.2f" % torrent.ratio) diff --git a/deluge/ui/webui/templates/deluge/tab_peers.html b/deluge/ui/webui/templates/deluge/tab_peers.html index a0c0c2023..4374ae589 100644 --- a/deluge/ui/webui/templates/deluge/tab_peers.html +++ b/deluge/ui/webui/templates/deluge/tab_peers.html @@ -11,7 +11,7 @@ $altrow(True) $_("Down Speed") $_("Country") $_("Client") - $_("progress") + $_("Progress") $for peer in torrent.peers: @@ -20,7 +20,13 @@ $for peer in torrent.peers: $fspeed(peer['down_speed']) $peer['country'] $peer['client'] - $peer['progress']% + +
+
+ $int(peer['progress']) % +
+
+ diff --git a/deluge/ui/webui/templates/white/part_organize.html b/deluge/ui/webui/templates/white/part_organize.html index 6c0ee3d3e..7be24a8b0 100644 --- a/deluge/ui/webui/templates/white/part_organize.html +++ b/deluge/ui/webui/templates/white/part_organize.html @@ -26,14 +26,14 @@ $for state, num in filters.state: $if not get('tracker'): class="selected" > - All + $_("All") $for tracker, num in filters.tracker:
  • - $tracker ($num) + $crop(tracker, 20) ($num)
  • diff --git a/deluge/ui/webui/templates/white/template_style.css b/deluge/ui/webui/templates/white/template_style.css index c2b42cd7c..923398730 100644 --- a/deluge/ui/webui/templates/white/template_style.css +++ b/deluge/ui/webui/templates/white/template_style.css @@ -20,7 +20,10 @@ a { } a:visited { color: #0000AA;} -th {font-weight:normal} +th { + font-weight:normal; + text-align: left; + } form { display:inline; @@ -170,6 +173,20 @@ tr.altrow1 { background-color:#FAFAFA; /*offf-topic-hint:allo allo*/ } +th { + padding-left:3px; +} +tr.altrow1 > td { + padding-left:3px; +} +tr.altrow0 > td { + padding-left:3px; +} +tr.torrent_table_selected > td { + padding-left:3px; +} + + tr.torrent_table_selected { background-color:#FFFFCC; }