More generic

merge-requests/8/head
Bob Mottram 2020-11-03 11:09:20 +00:00
parent 7369f62a8e
commit 120a3329c2
1 changed files with 7 additions and 3 deletions

View File

@ -5871,12 +5871,16 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
theme = ''
else:
theme = '_' + theme
themeRightColumnImageFilename = \
baseDir + '/img/right_col_image' + theme + '.png'
themeRightImageFile, themeRightColumnImageFilename = \
getImageFile(baseDir, 'right_col_image', baseDir + '/img',
nickname, domain)
if os.path.isfile(themeRightColumnImageFilename):
rightColumnImageFilename = \
baseDir + '/accounts/' + \
nickname + '@' + domain + '/' + themeRightImageFile
copyfile(themeRightColumnImageFilename,
rightColumnImageFilename)
rightImageFile = 'right_col_image.png'
rightImageFile = themeRightImageFile
# show the image at the top of the column
editImageClass = 'rightColEdit'