diff --git a/webinterface.py b/webinterface.py index b12b9183..694eec97 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 + ''