$def with (torrent)
$:(render.header(torrent.message + '/' + torrent.name))
$_('Details')
$torrent.progress %
|
$_('Downloaded'): |
$torrent.calc_total_downloaded |
$_('Uploaded'): |
$torrent.calc_total_uploaded |
$_('Seeders'): |
$torrent.num_seeds ($torrent.total_seeds ) |
$_('Share Ratio'): |
$("%.3f" % torrent.ratio) |
$_('Pieces'): |
$torrent.num_pieces x $fsize(torrent.piece_length) |
|
$_('Speed'): |
$fspeed(torrent.download_rate) |
$_('Speed'): |
$fspeed(torrent.upload_rate) |
$_('Peers'): |
$torrent.num_peers ($torrent.total_peers ) |
$_('ETA'): |
$torrent.eta |
$_('Availability'): |
$("%.3f" % torrent.distributed_copies) |
|
$_('Total Size'): |
$fsize(torrent.total_size) |
$_('# Of Files'): |
$torrent.num_files |
$_('Tracker'): |
$(crop(torrent.tracker, 30)) |
$_('Tracker Status'): |
$torrent.tracker_status |
$_('Next Announce'): |
$torrent.next_announce |
|
$:render.part_button('GET', '/torrent/delete/' + str(torrent.id), _('Remove'), 'tango/user-trash.png')
$:render.part_button('POST', '/torrent/reannounce/' + str(torrent.id), _('Reannounce'), 'tango/view-refresh.png')
Queue pos: $torrent.queue_pos
$:render.part_button('POST', '/torrent/queue/up/' + str(torrent.id), _('Queue Up'), 'tango/up.png')
$:render.part_button('POST', '/torrent/queue/down/' + str(torrent.id), _('Queue Down'), 'tango/down.png')
$:part_stats()
$:render.footer()