39 lines
933 B
HTML
39 lines
933 B
HTML
$def with (stats)
|
|
|
|
|
|
<div class="panel" id='refresh_panel'>
|
|
|
|
$_('Auto refresh:')
|
|
$if getcookie('auto_refresh') == '1':
|
|
($getcookie('auto_refresh_secs')) $_('seconds')
|
|
$:render.part_button('GET', '/refresh/set', _('Set'), 'tango/preferences-system.png')
|
|
$:render.part_button('POST', '/refresh/off', _('Disable'), 'tango/process-stop.png')
|
|
$else:
|
|
$_('Off')
|
|
$:render.part_button('POST', '/refresh/on', _('Enable'), 'tango/view-refresh.png')
|
|
$#end
|
|
|
|
$:render.part_button('POST', '/logout', _('Logout'), 'tango/system-log-out.png')
|
|
</div>
|
|
|
|
<div class="panel" id='stats_panel'>
|
|
<!--<a href='/config'>-->
|
|
|
|
$_('Connections') : $stats.num_connections ($stats.max_num_connections)
|
|
|
|
$_('Down Speed') : $stats.download_rate ($stats.max_download)
|
|
|
|
$_('Up Speed') : $stats.upload_rate ($stats.max_upload)
|
|
|
|
|
|
<!--</a>-->
|
|
|
|
</div>
|
|
|
|
<div id='about'>
|
|
<a href='/about'>$_('About')</a>
|
|
</div>
|
|
|
|
|
|
|