auto refresh details

This commit is contained in:
Martijn Voncken 2008-11-05 22:05:49 +00:00
parent 80318855f9
commit c5ffbd04e8
2 changed files with 18 additions and 0 deletions

View file

@ -7,6 +7,9 @@ $for id, title, image, flag, method, url, important in toolbar_items:
$if (flag > 0) and (id != 'details'):
$:render.part_button(method, (url + str(torrent.id)), title, 'tango/' + image)
</div>
<div style="width:120px;height:20px;overflow:hidden;align:left;text-align:left;padding-left:20px;">
$:render.part_auto_refresh()
</div>
$for id, title, tab in detail_tabs:
<h3>$title</h3>
$:render[tab](torrent)

View file

@ -0,0 +1,15 @@
$def with (torrent)
$:(render.header(_(torrent.state) + '/' + torrent.name))
<div class="panel" id="torrent_info">
<div style="width:120px;height:20px;overflow:hidden;align:left;text-align:left;padding-left:20px;">
$:render.part_auto_refresh()
</div>
$for id, title, tab in detail_tabs:
<h3>$title</h3>
$:render[tab](torrent)
<br>
</div>
$:render.footer()