From abc81ec464362c1b3e24b3e32d19e3b260876f2e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 31 Oct 2020 21:36:35 +0000 Subject: [PATCH] Comments --- webinterface.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index b12b91836..694eec974 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5773,7 +5773,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, domain = domain.split(':') if authorized: - # only show the publish button if logged in + # only show the publish button if logged in, otherwise replace it with + # a login button publishButtonStr = \ ' \n' + # show publish button at the top if needed if publishButtonAtTop: htmlStr += '
' + publishButtonStr + '
' + # show a column header image, eg. title of the theme or newswire banner editImageClass = '' if showHeaderImage: rightColumnImageFilename = \ @@ -5821,6 +5824,8 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, if editImageClass == 'rightColEdit': htmlStr += '\n
\n' + # whether to show a back icon + # This is probably going to be osolete soon if showBackButton: htmlStr += \ ' ' + \ @@ -5831,6 +5836,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, if not showPublishAsIcon: htmlStr += publishButtonStr + # show the edit icon if editor: if os.path.isfile(baseDir + '/accounts/newswiremoderation.txt'): # show the edit icon highlighted @@ -5853,6 +5859,7 @@ def getRightColumnContent(baseDir: str, nickname: str, domainFull: str, translate['Edit newswire'] + '" src="/' + \ iconsDir + '/edit.png" />\n' + # show the RSS icon rssIconStr = \ ' ' + \ '' + rssIconStr + ''