main
Bob Mottram 2020-10-02 22:56:22 +01:00
parent c78b9f9490
commit 6858e19722
1 changed files with 6 additions and 6 deletions

View File

@ -5187,13 +5187,13 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
if os.path.isfile(leftColumnImageFilename): if os.path.isfile(leftColumnImageFilename):
editImageClass = 'leftColEditImage' editImageClass = 'leftColEditImage'
htmlStr += \ htmlStr += \
' <center>\n' + \ '\n <center>\n' + \
' <img class="leftColImg" loading="lazy" src="/users/' + \ ' <img class="leftColImg" loading="lazy" src="/users/' + \
nickname + '/left_col_image.png" />\n' + \ nickname + '/left_col_image.png" />\n' + \
' </center>\n' ' </center>\n'
if editImageClass == 'leftColEdit': if editImageClass == 'leftColEdit':
htmlStr += ' <center>\n' htmlStr += '\n <center>\n'
if moderator: if moderator:
# show the edit icon # show the edit icon
@ -5217,7 +5217,7 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
iconsDir + '/rss.png" /></a>\n' iconsDir + '/rss.png" /></a>\n'
if editImageClass == 'leftColEdit': if editImageClass == 'leftColEdit':
htmlStr += ' <center>\n' htmlStr += ' </center>\n'
else: else:
htmlStr += ' <br>\n' htmlStr += ' <br>\n'
@ -5298,13 +5298,13 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
if os.path.isfile(rightColumnImageFilename): if os.path.isfile(rightColumnImageFilename):
editImageClass = 'rightColEditImage' editImageClass = 'rightColEditImage'
htmlStr += \ htmlStr += \
' <center>\n' + \ '\n <center>\n' + \
' <img class="rightColImg" loading="lazy" src="/users/' + \ ' <img class="rightColImg" loading="lazy" src="/users/' + \
nickname + '/right_col_image.png" />\n' + \ nickname + '/right_col_image.png" />\n' + \
' </center>\n' ' </center>\n'
if editImageClass == 'rightColEdit': if editImageClass == 'rightColEdit':
htmlStr += ' <center>\n' htmlStr += '\n <center>\n'
if moderator: if moderator:
# show the edit icon # show the edit icon
@ -5319,7 +5319,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
iconsDir + '/edit.png" /></a>\n' iconsDir + '/edit.png" /></a>\n'
if editImageClass == 'rightColEdit': if editImageClass == 'rightColEdit':
htmlStr += ' <center>\n' htmlStr += ' </center>\n'
else: else:
htmlStr += ' <br>\n' htmlStr += ' <br>\n'
return htmlStr return htmlStr