2016-11-05 20:28:19 +00:00
|
|
|
##
|
2016-11-19 03:19:57 +00:00
|
|
|
#from sickbeard import WEB_PORT, WEB_ROOT, PID, ENABLE_HTTPS, THEME_NAME
|
|
|
|
#set sg_host = $getVar('sbHost', 'localhost')
|
|
|
|
#set sg_port = str($getVar('sbHttpPort', WEB_PORT))
|
|
|
|
#set sg_root = $getVar('sbRoot', WEB_ROOT)
|
|
|
|
#set sg_pid = $getVar('sbPID', str(PID))
|
|
|
|
#set sg_use_https = $getVar('sbHttpsEnabled', ENABLE_HTTPS)
|
|
|
|
#set theme_suffix = ('', '-dark')['dark' == $getVar('sbThemeName', THEME_NAME)]
|
|
|
|
#set do_shutdown = bool($getVar('shutdown', False)) ## can be None so must enforce bool
|
2016-11-05 20:28:19 +00:00
|
|
|
##
|
2016-10-23 02:23:44 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="robots" content="noindex, nofollow, noarchive, nocache, noodp, noydir, noimageindex, nosnippet">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
2017-06-14 15:12:56 +00:00
|
|
|
<title>SickGear - #echo ('Restart', 'Shutdown')[$do_shutdown]#</title>
|
2016-11-19 03:19:57 +00:00
|
|
|
<link rel="shortcut icon" href="$sg_root/images/ico/favicon.ico">
|
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="$sg_root/images/ico/apple-touch-icon-180x180.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="152x152" href="$sg_root/images/ico/apple-touch-icon-152x152.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="144x144" href="$sg_root/images/ico/apple-touch-icon-144x144.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="120x120" href="$sg_root/images/ico/apple-touch-icon-120x120.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="114x114" href="$sg_root/images/ico/apple-touch-icon-114x114.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="76x76" href="$sg_root/images/ico/apple-touch-icon-76x76.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="72x72" href="$sg_root/images/ico/apple-touch-icon-72x72.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="60x60" href="$sg_root/images/ico/apple-touch-icon-60x60.png">
|
|
|
|
<link rel="apple-touch-icon" sizes="57x57" href="$sg_root/images/ico/apple-touch-icon-57x57.png">
|
|
|
|
<link rel="icon" type="image/png" href="$sg_root/images/ico/favicon-192x192.png" sizes="192x192">
|
|
|
|
<link rel="icon" type="image/png" href="$sg_root/images/ico/favicon-160x160.png" sizes="160x160">
|
|
|
|
<link rel="icon" type="image/png" href="$sg_root/images/ico/favicon-96x96.png" sizes="96x96">
|
|
|
|
<link rel="icon" type="image/png" href="$sg_root/images/ico/favicon-32x32.png" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="$sg_root/images/ico/favicon-16x16.png" sizes="16x16">
|
2016-10-23 02:23:44 +00:00
|
|
|
<meta name="msapplication-TileColor" content="#2b5797">
|
2016-11-19 03:19:57 +00:00
|
|
|
<meta name="msapplication-TileImage" content="$sg_root/images/ico/mstile-144x144.png">
|
|
|
|
<meta name="msapplication-config" content="$sg_root/css/browserconfig.xml">
|
2016-10-23 02:23:44 +00:00
|
|
|
|
2017-02-03 01:44:55 +00:00
|
|
|
<script type="text/javascript" src="$sg_root/js/lib/jquery-2.2.4.min.js?v=$sg_pid"></script>
|
2016-10-23 02:23:44 +00:00
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
<!--
|
|
|
|
\$.SickGear = {
|
2016-11-19 03:19:57 +00:00
|
|
|
Host: '$sg_host',
|
|
|
|
Port: '$sg_port',
|
|
|
|
Root: '$sg_root',
|
2016-12-15 04:19:49 +00:00
|
|
|
UseHttps: #echo ('!1', '!0')[False != $sg_use_https and 0 != $sg_use_https]#,
|
|
|
|
PID: '$sbPID'
|
2016-10-23 02:23:44 +00:00
|
|
|
};
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
2016-11-19 03:19:57 +00:00
|
|
|
<script type="text/javascript" src="$sg_root/js/restart.js?v=$sg_pid"></script>
|
2016-10-23 02:23:44 +00:00
|
|
|
|
|
|
|
<style>
|
2016-11-19 03:19:57 +00:00
|
|
|
body{padding-top:0 !important}.sglogo{display:block;width:138px;height:74px;margin-bottom:-10px;background:url(${sg_root}/images/sickgear.png) no-repeat 0 0}.bfr{position:absolute;left:-999px;top:-999px}.bfr img{width:16px;height:16px}.spinner{display:inline-block;width:16px;height:16px;background:url(${sg_root}/images/loading16${theme_suffix}.gif) no-repeat 0 0}.sub-title{padding-bottom:10px}.desc, .images i{margin-right:6px}.images i{vertical-align:middle}.hide,.hide-yes,.hide-no{display:none}#restart_fail_message{padding-top:10px}
|
2016-10-23 02:23:44 +00:00
|
|
|
</style>
|
|
|
|
|
2016-11-19 03:19:57 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="$sg_root/css/style.css?v=$sg_pid">
|
|
|
|
<link rel="stylesheet" type="text/css" href="$sg_root/css/#echo ('dark', 'light')['' == $theme_suffix]#.css?v=$sg_pid">
|
2016-10-23 02:23:44 +00:00
|
|
|
|
|
|
|
</head><body><span class="sglogo"></span>
|
2016-11-19 03:19:57 +00:00
|
|
|
<div class="bfr"><img src="$sg_root/images/loading16${theme_suffix}.gif" /><img src="$sg_root/images/yes16.png" /><img src="$sg_root/images/no16.png" /></div>
|
2016-10-23 02:23:44 +00:00
|
|
|
|
2016-11-19 03:19:57 +00:00
|
|
|
<h2 class="sub-title">Performing #echo ('Restart', 'Shutdown')[$do_shutdown]#</h2>
|
2016-10-23 02:23:44 +00:00
|
|
|
|
|
|
|
<div id="shut_down_message">
|
|
|
|
<span class="desc"><span class="grey-text">Waiting for SickGear to</span> shut down: </span>
|
|
|
|
<span class="images"><i class="spinner"></i><span class="hide-yes"><i class="yes"></i></span></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="hide" id="restart_message">
|
2016-11-19 03:19:57 +00:00
|
|
|
#if not $do_shutdown
|
2016-10-23 02:23:44 +00:00
|
|
|
<span class="desc"><span class="grey-text">Waiting for SickGear to</span> start up: </span>
|
|
|
|
<span class="images"><i class="spinner"></i><span class="hide-yes"><i class="yes"></i></span><span class="hide-no"><i class="no"></i></span></span>
|
2016-11-05 20:28:19 +00:00
|
|
|
#end if
|
2016-10-23 02:23:44 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="hide" id="refresh_message">
|
2016-11-19 03:19:57 +00:00
|
|
|
#if not $do_shutdown
|
2016-10-23 02:23:44 +00:00
|
|
|
<span class="desc"><span class="grey-text">Waiting for SickGear </span> home page: </span>
|
|
|
|
<span class="images"><i class="spinner"></i></span>
|
2016-11-05 20:28:19 +00:00
|
|
|
#end if
|
2016-10-23 02:23:44 +00:00
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-10-23 02:23:44 +00:00
|
|
|
<div class="hide" id="restart_fail_message">
|
2016-11-19 03:19:57 +00:00
|
|
|
#if not $do_shutdown
|
2016-10-23 02:23:44 +00:00
|
|
|
<span class="red-text">Error:</span> The restart timed out, perhaps something prevented SickGear from starting ?
|
2016-11-05 20:28:19 +00:00
|
|
|
#end if
|
2016-10-23 02:23:44 +00:00
|
|
|
</div>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-10-23 02:23:44 +00:00
|
|
|
</body></html>
|