diff --git a/deluge/ui/webui/webui_plugin/templates/advanced/index.html b/deluge/ui/webui/webui_plugin/templates/advanced/index.html index 4ef2f996d..49d549185 100644 --- a/deluge/ui/webui/webui_plugin/templates/advanced/index.html +++ b/deluge/ui/webui/webui_plugin/templates/advanced/index.html @@ -100,19 +100,28 @@ $for torrent in torrent_list: $if (not get('category')): $torrent.category - $torrent.num_seeds ($torrent.total_seeds) - $torrent.num_peers ($torrent.total_peers) + + $if torrent.total_seeds != -1: + $torrent.num_seeds ($torrent.total_seeds) + $else: + - + + + $if torrent.total_peers != -1: + $torrent.num_peers ($torrent.total_peers) + $else: + - $if (torrent.download_rate): $fspeed(torrent.download_rate) $else: -   + - $if (torrent.upload_rate): $fspeed(torrent.upload_rate) $else: -   + - $ftime(torrent.eta) $("%.3f" % torrent.distributed_copies)