mirror of https://gitlab.com/bashrc2/epicyon
Remove background link if image does not exist
parent
d5425aff05
commit
3777364459
|
@ -8618,6 +8618,13 @@ def htmlSearch(cssCache: {}, translate: {},
|
||||||
|
|
||||||
profileStyle = getCSS(baseDir, cssFilename, cssCache)
|
profileStyle = getCSS(baseDir, cssFilename, cssCache)
|
||||||
|
|
||||||
|
if not os.path.isfile(baseDir + '/accounts/' +
|
||||||
|
'follow-background.jpg'):
|
||||||
|
profileStyle = \
|
||||||
|
profileStyle.replace('background-image: ' + \
|
||||||
|
'url("follow-background.jpg");',
|
||||||
|
'background-image: none;')
|
||||||
|
|
||||||
followStr = htmlHeader(cssFilename, profileStyle)
|
followStr = htmlHeader(cssFilename, profileStyle)
|
||||||
|
|
||||||
# show a banner above the search box
|
# show a banner above the search box
|
||||||
|
|
Loading…
Reference in New Issue