mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-12 09:47:40 +08:00
Add Logout to system tab
This commit is contained in:
parent
ac640e4054
commit
280b437116
1 changed files with 10 additions and 2 deletions
|
@ -49,6 +49,10 @@
|
||||||
<div class="ui basic icon buttons" style="float: right;">
|
<div class="ui basic icon buttons" style="float: right;">
|
||||||
<div id="shutdown" class="ui icon button" data-tooltip="Shutdown" data-inverted=""><i class="red power off icon"></i></div>
|
<div id="shutdown" class="ui icon button" data-tooltip="Shutdown" data-inverted=""><i class="red power off icon"></i></div>
|
||||||
<div id="restart" class="ui icon button" data-tooltip="Restart" data-inverted=""><i class="redo alternate icon"></i></div>
|
<div id="restart" class="ui icon button" data-tooltip="Restart" data-inverted=""><i class="redo alternate icon"></i></div>
|
||||||
|
% from get_settings import get_auth_settings
|
||||||
|
% if get_auth_settings()[0] != 'None':
|
||||||
|
<div id="logout" class="ui icon button" data-tooltip="Logout" data-inverted=""><i class="sign-out icon"></i></div>
|
||||||
|
% end
|
||||||
</div>
|
</div>
|
||||||
<div class="ui top attached tabular menu">
|
<div class="ui top attached tabular menu">
|
||||||
<a class="tabs item active" data-tab="tasks">Tasks</a>
|
<a class="tabs item active" data-tab="tasks">Tasks</a>
|
||||||
|
@ -233,7 +237,7 @@
|
||||||
<div class="five wide column">
|
<div class="five wide column">
|
||||||
<div class='field'>
|
<div class='field'>
|
||||||
<div class="ui fluid input">
|
<div class="ui fluid input">
|
||||||
<i class="wikipedia w icon"></i><a href=https://github.com/morpheus65535/bazarr/wiki">Bazarr Wiki</a>
|
<i class="wikipedia w icon"></i><a href="https://github.com/morpheus65535/bazarr/wiki">Bazarr Wiki</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -363,6 +367,10 @@
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
$('#logout').click(function(){
|
||||||
|
window.location = '{{base_url}}logout';
|
||||||
|
})
|
||||||
|
|
||||||
$('#restart').click(function(){
|
$('#restart').click(function(){
|
||||||
$('#loader_text').text("Bazarr is restarting, please wait...");
|
$('#loader_text').text("Bazarr is restarting, please wait...");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in a new issue