mirror of https://gitlab.com/bashrc2/epicyon
Add style to header
parent
af4fb2ed7b
commit
07eefce640
|
@ -2220,7 +2220,9 @@ def htmlIndividualPost(translate: {}, \
|
||||||
cssFilename=baseDir+'/epicyon-profile.css'
|
cssFilename=baseDir+'/epicyon-profile.css'
|
||||||
if os.path.isfile(baseDir+'/epicyon.css'):
|
if os.path.isfile(baseDir+'/epicyon.css'):
|
||||||
cssFilename=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, \
|
def htmlPostReplies(translate: {},baseDir: str, \
|
||||||
session,wfRequest: {},personCache: {}, \
|
session,wfRequest: {},personCache: {}, \
|
||||||
|
@ -2242,7 +2244,9 @@ def htmlPostReplies(translate: {},baseDir: str, \
|
||||||
cssFilename=baseDir+'/epicyon-profile.css'
|
cssFilename=baseDir+'/epicyon-profile.css'
|
||||||
if os.path.isfile(baseDir+'/epicyon.css'):
|
if os.path.isfile(baseDir+'/epicyon.css'):
|
||||||
cssFilename=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:
|
def htmlRemoveSharedItem(translate: {},baseDir: str,actor: str,shareName: str) -> str:
|
||||||
"""Shows a screen asking to confirm the removal of a shared item
|
"""Shows a screen asking to confirm the removal of a shared item
|
||||||
|
|
Loading…
Reference in New Issue