Remove background link if image does not exist

main
Bob Mottram 2020-11-02 11:01:22 +00:00
parent d5425aff05
commit 3777364459
1 changed files with 7 additions and 0 deletions

View File

@ -8618,6 +8618,13 @@ def htmlSearch(cssCache: {}, translate: {},
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)
# show a banner above the search box