mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix theme identification for spinner when restarting.
This commit is contained in:
parent
22021a9a4e
commit
d5863943c0
@ -5,11 +5,13 @@
|
||||
#set curSBHttpPort = $sbHttpPort
|
||||
#set curSBHttpsEnabled = $sbHttpsEnabled
|
||||
#set curSBHandleReverseProxy = $sbHandleReverseProxy
|
||||
#set themeSpinner = $sbThemeName
|
||||
#except NameMapper.NotFound:
|
||||
#set curSBHost = "localhost"
|
||||
#set curSBHttpPort = $sickbeard.WEB_PORT
|
||||
#set curSBHttpsEnabled = "False"
|
||||
#set curSBHandleReverseProxy = "False"
|
||||
#set themeSpinner = $sickbeard.THEME_NAME
|
||||
#end try
|
||||
sbRoot = "$sbRoot";
|
||||
sbHttpPort = "$curSBHttpPort";
|
||||
@ -22,18 +24,7 @@ sbHost = "$curSBHost";
|
||||
<script type="text/javascript" src="$sbRoot/js/lib/jquery-1.8.3.min.js?$sbPID"></script>
|
||||
<script type="text/javascript" src="$sbRoot/js/restart.js?$sbPID"></script>
|
||||
|
||||
#try:
|
||||
#sickbeard
|
||||
#except NameError:
|
||||
#set themeSpinner = '';
|
||||
#else:
|
||||
#if 'dark' != sickbeard.THEME_NAME:
|
||||
#set themeSpinner = ''
|
||||
#else:
|
||||
#set themeSpinner = '-dark'
|
||||
#end if
|
||||
#end try
|
||||
|
||||
#set themeSpinner = '-dark' if 'dark' == themeSpinner else ''
|
||||
<h2>Performing Restart</h2>
|
||||
<br />
|
||||
<div id="shut_down_message">
|
||||
|
@ -513,6 +513,7 @@ class PageTemplate(Template):
|
||||
self.sbHttpsPort = sickbeard.WEB_PORT
|
||||
self.sbHttpsEnabled = sickbeard.ENABLE_HTTPS
|
||||
self.sbHandleReverseProxy = sickbeard.HANDLE_REVERSE_PROXY
|
||||
self.sbThemeName = sickbeard.THEME_NAME
|
||||
|
||||
if headers['Host'][0] == '[':
|
||||
self.sbHost = re.match("^\[.*\]", headers['Host'], re.X | re.M | re.S).group(0)
|
||||
|
Loading…
Reference in New Issue
Block a user