Add style to header

main2
Bob Mottram 2019-09-18 11:01:31 +01:00
parent af4fb2ed7b
commit 07eefce640
1 changed files with 6 additions and 2 deletions

View File

@ -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