fix advanced webui statusbar for shwouchk
This commit is contained in:
parent
89e2e3ae5c
commit
07939d46b2
|
@ -282,6 +282,10 @@ class resume_all:
|
|||
do_redirect()
|
||||
|
||||
class refresh:
|
||||
def GET(self, name):
|
||||
return self.POST(name)
|
||||
#WRONG, but makes it easyer to link with <a href in the status-bar
|
||||
|
||||
@deco.check_session
|
||||
def POST(self, name):
|
||||
auto_refresh = {'off': '0', 'on': '1'}[name]
|
||||
|
@ -317,6 +321,10 @@ class about:
|
|||
return render.about()
|
||||
|
||||
class logout:
|
||||
def GET(self):
|
||||
return self.POST()
|
||||
#WRONG, but makes it easyer to link with <a href in the status-bar
|
||||
|
||||
@deco.check_session
|
||||
def POST(self, name):
|
||||
end_session()
|
||||
|
|
|
@ -6,16 +6,16 @@ $def with (stats)
|
|||
$_('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')
|
||||
<a href="/refresh/set">$_('Set')</a>
|
||||
<a href="/refresh/off">$_('Disable')</a><!--WRONG, setting things on a GET-->
|
||||
$else:
|
||||
$_('Off')
|
||||
$:render.part_button('POST', '/refresh/on', _('Enable'), 'tango/view-refresh.png')
|
||||
<a href="/refresh/on">$_('Enable')</a><!--WRONG, setting things on a GET-->
|
||||
]
|
||||
|
||||
$:render.part_button('POST', '/logout', _('Logout'), 'tango/system-log-out.png')
|
||||
<a href="/logout">$_('Logout')</a><!--WRONG, setting things on a GET-->
|
||||
<a href="/config/">$_('Settings')</a>
|
||||
|
||||
$:render.part_button('GET', '/config/', _('Settings'), 'tango/preferences-system.png')
|
||||
</div>
|
||||
|
||||
<div class="panel" id='stats_panel'>
|
||||
|
|
|
@ -167,19 +167,17 @@ body.inner {
|
|||
z-index:999;
|
||||
}
|
||||
|
||||
#refresh_panel button {
|
||||
background-color:#304663;
|
||||
color:#FFFFFF;
|
||||
border:0;
|
||||
position:relative;
|
||||
top:-2px;
|
||||
height:15px;
|
||||
background-color:#ddd;
|
||||
color:#00F;
|
||||
#refresh_panel a {
|
||||
color:0000FF;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
#refresh_panel button:hover {
|
||||
text-decoration: underline;
|
||||
#refresh_panel a:visited {
|
||||
color:0000FF;
|
||||
}
|
||||
|
||||
#refresh_panel a:hover {
|
||||
color:0000FF;
|
||||
}
|
||||
|
||||
#stats_panel button {
|
||||
|
|
Loading…
Reference in New Issue