torrent-index use '-' for unknown/empty values
This commit is contained in:
parent
eeac163a9d
commit
1c33177a63
|
@ -100,19 +100,28 @@ $for torrent in torrent_list:
|
||||||
</td>
|
</td>
|
||||||
$if (not get('category')):
|
$if (not get('category')):
|
||||||
<td>$torrent.category</td>
|
<td>$torrent.category</td>
|
||||||
<td>$torrent.num_seeds ($torrent.total_seeds)</td>
|
<td>
|
||||||
<td>$torrent.num_peers ($torrent.total_peers)</td>
|
$if torrent.total_seeds != -1:
|
||||||
|
$torrent.num_seeds ($torrent.total_seeds)
|
||||||
|
$else:
|
||||||
|
-
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
$if torrent.total_peers != -1:
|
||||||
|
$torrent.num_peers ($torrent.total_peers)</td>
|
||||||
|
$else:
|
||||||
|
-
|
||||||
<td>
|
<td>
|
||||||
$if (torrent.download_rate):
|
$if (torrent.download_rate):
|
||||||
$fspeed(torrent.download_rate)
|
$fspeed(torrent.download_rate)
|
||||||
$else:
|
$else:
|
||||||
|
-
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
$if (torrent.upload_rate):
|
$if (torrent.upload_rate):
|
||||||
$fspeed(torrent.upload_rate)
|
$fspeed(torrent.upload_rate)
|
||||||
$else:
|
$else:
|
||||||
|
-
|
||||||
</td>
|
</td>
|
||||||
<td>$ftime(torrent.eta)</td>
|
<td>$ftime(torrent.eta)</td>
|
||||||
<td>$("%.3f" % torrent.distributed_copies)</td>
|
<td>$("%.3f" % torrent.distributed_copies)</td>
|
||||||
|
|
Loading…
Reference in New Issue