update details+stats tab

This commit is contained in:
Martijn Voncken 2008-07-14 18:26:00 +00:00
parent ceaa06d1ad
commit 8668e2eb8e
3 changed files with 16 additions and 20 deletions

View File

@ -12,7 +12,7 @@ $def with (torrent)
</tr> </tr>
<tr> <tr>
<td class="info_label"><a href="/torrent/move/$torrent.id" target="_top">$('Save Path'):</td> <td class="info_label"><a href="/torrent/move/$torrent.id" target="_top">$('Path'):</td>
<td class="info_value" title="$torrent.save_path">$crop_left(torrent.save_path, 200)</td> <td class="info_value" title="$torrent.save_path">$crop_left(torrent.save_path, 200)</td>
</tr> </tr>
@ -33,15 +33,12 @@ $def with (torrent)
<tr><td class="info_label">$_('Tracker'):</td> <tr><td class="info_label">$_('Tracker'):</td>
<td class="info_value" title="$torrent.tracker">$(crop(torrent.tracker, 200))</td> <td class="info_value" title="$torrent.tracker">$(crop(torrent.tracker, 200))</td>
</tr> </tr>
<tr> <tr>
<td class="info_label">$_('Private'):</td> <td class="info_label">$_('Private'):</td>
<td class="info_value">$torrent.private</td> <td class="info_value">$torrent.private</td>
</tr> </tr>
</table> </table>
</tr> </tr>
</table> </table>

View File

@ -63,13 +63,12 @@ $fspeed(torrent.download_payload_rate)</td></td></tr>
<tr><td class="info_label">$_('Auto Managed'):</td>
<tr><td class="info_label">$_('Queue Position'):</td>
<td class="info_value"> <td class="info_value">
$if (torrent.queue == -1): $if torrent.is_auto_managed:
&#8734; <!--infinite symbol--> $_('True')
$else: $else:
$(torrent.queue + 1) $_('False')
</td></tr> </td></tr>
@ -79,20 +78,21 @@ $else:
<table> <table>
<tr><td class="info_label">$_('Active time'):</td> <tr><td class="info_label">$_('Active time'):</td>
<td class="info_value">TODO</td> <td class="info_value">$ftime(torrent.active_time)</td>
</tr> </tr>
<tr><td class="info_label">$_('Seeding time'):</td> <tr><td class="info_label">$_('Seeding time'):</td>
<td class="info_value">TODO</td> <td class="info_value">$ftime(torrent.seeding_time)</td>
</tr> </tr>
<tr><td class="info_label">$_('Seed rank'):</td> <tr><td class="info_label">$_('Seed rank'):</td>
<td class="info_value">TODO</td> <td class="info_value">$(torrent.seed_rank)</td>
</tr> </tr>
<tr><td class="info_label">$_('Allocation'):</td>
<tr><td class="info_label">$_('Queue Position'):</td>
<td class="info_value"> <td class="info_value">
$if torrent.compact: $if (torrent.queue == -1):
$_('Compact') &#8734; <!--infinite symbol-->
$else: $else:
$_('Full') $(torrent.queue + 1)
</td></tr> </td></tr>
</table></td> </table></td>

View File

@ -44,8 +44,7 @@ TORRENT_KEYS = ['name', 'total_size', 'num_files', 'num_pieces', 'piece_length',
'files', 'file_priorities', 'compact', 'max_connections', 'files', 'file_priorities', 'compact', 'max_connections',
'max_upload_slots', 'max_download_speed', 'prioritize_first_last', 'max_upload_slots', 'max_download_speed', 'prioritize_first_last',
'private','max_upload_speed','queue','peers', 'private','max_upload_speed','queue','peers',
#builtin plugins: "active_time", "seeding_time", "seed_rank", "is_auto_managed", #stats
'tracker_name', #organize-plugin
'tracker_host', 'label' #label-plugin 'tracker_host', 'label' #label-plugin
] ]