$def with (stats)


<div class="panel"  id='refresh_panel'>

$_('Auto refresh:')
$if getcookie('auto_refresh') == '1':
    ($getcookie('auto_refresh_secs')) $_('seconds') &nbsp;
    $:render.part_button('GET', '/refresh/set', _('Set'), 'tango/preferences-system.png')
    $:render.part_button('POST', '/refresh/off', _('Disable'), 'tango/process-stop.png')
$else:
    $_('Off') &nbsp;
    $:render.part_button('POST', '/refresh/on', _('Enable'), 'tango/view-refresh.png')
$#end
</div>

<div class="panel"  id='refresh_panel'>
    <!--<a href='/config'>-->
    $_('Down Speed') : $stats.download_rate  ($stats.max_download)

    $_('Up Speed') : $stats.upload_rate  ($stats.max_upload)

    <!--</a>-->


    (<a href='/about'>$_('About')</a>)

</div>


