cosmectics:queue

This commit is contained in:
Martijn Voncken 2008-06-21 08:56:32 +00:00
parent 0a37faadc7
commit bc41329f2a
4 changed files with 20 additions and 4 deletions

View File

@ -48,7 +48,12 @@ $for torrent in torrent_list:
name="pauseresume" value="submit" />
</form>
</td>
<td>$torrent.queue</td>
<td>
$if (torrent.queue == -1):
&#8734; <!--infinite symbol-->
$else:
$(torrent.queue + 1)
</td>
<td style="width:100px; overflow:hidden;white-space: nowrap">
$(crop(torrent.name, 30))</td>
<td>$fsize(torrent.total_size)</td>

View File

@ -1,7 +1,7 @@
$def with (torrent)
<table width="100%">
<!--long values-->
<tr><td>&nbsp;</td></tr>
<!--<tr><td>&nbsp;</td></tr>-->
<tr colspan="3">
<table>
<tr><td class="info_label">$('Name'):</td>
@ -20,6 +20,12 @@ $def with (torrent)
<tr>
<td class="info_label"><a href="/torrent/move/$torrent.id" target="_top">$('Save Path'):</td>
<td class="info_value" title="$torrent.save_path">$crop_left(torrent.save_path, 200)</td>
</tr>
<tr>
<td class="info_label">$_('Private'):</td>
<td class="info_value">$torrent.private</td>
</tr>
</table>
</tr>
</table>

View File

@ -63,7 +63,12 @@ $fspeed(torrent.download_payload_rate)</td></td></tr>
<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>
<td class="info_value">
$if (torrent.queue == -1):
&#8734; <!--infinite symbol-->
$else:
$(torrent.queue + 1)
</td></tr>
<tr><td class="info_label">$_('Allocation'):</td>
<td class="info_value">

View File

@ -21,7 +21,7 @@ class TorrentOptionsForm(forms.Form):
#general
prioritize_first_last = forms.CheckBox(
_('Prioritize first and last pieces [TODO!]'))
private = forms.CheckBox(_('Private'))
#private = forms.CheckBox(_('Private'))
class torrent_options:
@deco.check_session