From 07eefce640b76909ac0af0a3428375dc430f414e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 18 Sep 2019 11:01:31 +0100 Subject: [PATCH] Add style to header --- webinterface.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webinterface.py b/webinterface.py index 85364b956..1248a4343 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2220,7 +2220,9 @@ def htmlIndividualPost(translate: {}, \ cssFilename=baseDir+'/epicyon-profile.css' if os.path.isfile(baseDir+'/epicyon.css'): cssFilename=baseDir+'/epicyon.css' - return htmlHeader(cssFilename)+postStr+htmlFooter() + with open(cssFilename, 'r') as cssFile: + postsCSS=cssFile.read() + return htmlHeader(cssFilename,postsCSS)+postStr+htmlFooter() def htmlPostReplies(translate: {},baseDir: str, \ session,wfRequest: {},personCache: {}, \ @@ -2242,7 +2244,9 @@ def htmlPostReplies(translate: {},baseDir: str, \ cssFilename=baseDir+'/epicyon-profile.css' if os.path.isfile(baseDir+'/epicyon.css'): cssFilename=baseDir+'/epicyon.css' - return htmlHeader(cssFilename)+repliesStr+htmlFooter() + with open(cssFilename, 'r') as cssFile: + postsCSS=cssFile.read() + return htmlHeader(cssFilename,postsCSS)+repliesStr+htmlFooter() def htmlRemoveSharedItem(translate: {},baseDir: str,actor: str,shareName: str) -> str: """Shows a screen asking to confirm the removal of a shared item