deluge/deluge/ui/webui/templates/deluge/tab_statistics.html
2008-04-04 19:33:33 +00:00

98 lines
2.8 KiB
HTML

$def with (torrent)
<table width="100%"><tr>
<td colspan=3 style="background-color:#999;-moz-border-radius:5px;">
<div class="progress_bar" style="width:$torrent.progress%;
text-align:center;font-weight:bold;">
$("%.2f" % torrent.progress) %</div>
</td>
</tr><td width=30%%>
<table>
<tr><td class="info_label">$_('Downloaded'):</td>
<td class="info_value">$fsize(torrent.total_done)</td></tr>
<tr><td class="info_label">$_('Uploaded'):</td>
<td class="info_value">$fsize(torrent.total_payload_upload)</td>
</tr>
<tr><td class="info_label">$_('Seeders'):</td>
<td class="info_value">$torrent.num_seeds ($torrent.total_seeds )</td></tr>
<tr><td class="info_label">$_('Share Ratio'):</td>
<td class="info_value">$("%.3f" % torrent.ratio)</td></tr>
<tr><td class="info_label">$_('Pieces'):</td>
<td class="info_value">$torrent.num_pieces x $fsize(torrent.piece_length) </td>
</tr>
</table>
</td><td width=30%%>
<table>
<tr><td class="info_label">$_('Speed'):</td><td class="info_value">
$fspeed(torrent.download_payload_rate)</td></td></tr>
<tr><td class="info_label">$_('Speed'):</td>
<td class="info_value">$fspeed(torrent.upload_payload_rate)</td></tr>
<tr><td class="info_label">$_('Peers'):</td>
<td class="info_value">$torrent.num_peers ($torrent.total_peers )</td></tr>
<tr><td class="info_label">$_('ETA'):</td>
<td class="info_value">$ftime(torrent.eta) </td></tr>
<tr><td class="info_label">$_('Availability'):</td>
<td class="info_value">$("%.3f" % torrent.distributed_copies)</td></td></tr>
</table>
</td><td width=30%%>
<table>
<tr><td class="info_label">$_('Total Size'):</td>
<td class="info_value">$fsize(torrent.total_size)</td></tr>
<tr><td class="info_label">$_('# Of Files'):</td>
<td class="info_value">$torrent.num_files</td></tr>
<tr><td class="info_label">$_('Next Announce'):</td>
<td class="info_value">$torrent.next_announce </td></tr>
<tr><td class="info_label">$_('Queue Position'):</td>
<td class="info_value">$torrent.queue </td></tr>
<tr><td class="info_label">$_('Allocation'):</td>
<td class="info_value">
$if torrent.compact:
$_('Compact')
$else:
$_('Full')
</td></tr>
</table>
</tr>
<!--long values-->
<tr><td>&nbsp;</td></tr>
<tr colspan="3">
<table>
<tr><td class="info_label">$('Hash'):</td>
<td class="info_value">$torrent.id</td>
</tr>
<tr><td class="info_label">$_('Tracker'):</td>
<td class="info_value" title="$torrent.tracker">$(crop(torrent.tracker, 200))</td>
</tr>
<tr><td class="info_label">$_('Tracker Status'):</td>
<td class="info_value" title="$torrent.tracker_status">$(crop(torrent.tracker_status, 200)) </td>
</tr>
<tr>
<td class="info_label">$('Save Path'):</td>
<td class="info_value" title="$torrent.save_path">$crop_left(torrent.save_path, 200)</td>
</table>
</tr>
</table>