Merge branch 'master' into sleepers
This commit is contained in:
commit
9bb7f18848
2 changed files with 14 additions and 1 deletions
13
install.py
13
install.py
|
@ -33,6 +33,19 @@ for root, folders, files in os.walk(join(base, 'static')):
|
||||||
os.makedirs(target_folder)
|
os.makedirs(target_folder)
|
||||||
os.symlink(rel_src, target)
|
os.symlink(rel_src, target)
|
||||||
|
|
||||||
|
for img in ('logo.png', 'icon.png'):
|
||||||
|
f = join('/srv/pandora/static/png', img)
|
||||||
|
custom = join('/srv/pandora/static/png', img.replace('.png', '.%s.png' % name))
|
||||||
|
if os.path.exists(custom):
|
||||||
|
if not os.path.islink(f):
|
||||||
|
os.unlink(f)
|
||||||
|
else:
|
||||||
|
path = os.path.realpath(f)
|
||||||
|
if name not in path:
|
||||||
|
os.unlink(f)
|
||||||
|
if not os.path.exists(f):
|
||||||
|
os.symlink(os.path.basename(custom), f)
|
||||||
|
|
||||||
if overwrite:
|
if overwrite:
|
||||||
os.chdir('/srv/pandora/static/js')
|
os.chdir('/srv/pandora/static/js')
|
||||||
for filename, sitename in overwrite:
|
for filename, sitename in overwrite:
|
||||||
|
|
|
@ -291,7 +291,7 @@ pandora.ui.home = function() {
|
||||||
if (loadedCSS) {
|
if (loadedCSS) {
|
||||||
callback()
|
callback()
|
||||||
} else {
|
} else {
|
||||||
Ox.getFile('/static/css/home.css', function() {
|
Ox.getFile('/static/css/home.collectivecinema.css', function() {
|
||||||
loadedCSS = true
|
loadedCSS = true
|
||||||
callback()
|
callback()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue