From 70a83927938d6866fb79fb7b2fdb3aaaf075138a Mon Sep 17 00:00:00 2001 From: j Date: Thu, 7 Nov 2019 11:02:49 +0100 Subject: [PATCH 1/2] load site css --- static/js/home.collectivecinema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/home.collectivecinema.js b/static/js/home.collectivecinema.js index aea3123..7e0c8d7 100644 --- a/static/js/home.collectivecinema.js +++ b/static/js/home.collectivecinema.js @@ -291,7 +291,7 @@ pandora.ui.home = function() { if (loadedCSS) { callback() } else { - Ox.getFile('/static/css/home.css', function() { + Ox.getFile('/static/css/home.collectivecinema.css', function() { loadedCSS = true callback() }) From cb76d29f0b7e163a8f23fde7ab9ed6568c1eebcc Mon Sep 17 00:00:00 2001 From: j Date: Thu, 7 Nov 2019 17:07:15 +0100 Subject: [PATCH 2/2] link logo/icon --- install.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install.py b/install.py index 5720c14..d41abed 100755 --- a/install.py +++ b/install.py @@ -33,6 +33,19 @@ for root, folders, files in os.walk(join(base, 'static')): os.makedirs(target_folder) 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: os.chdir('/srv/pandora/static/js') for filename, sitename in overwrite: