From 39874ad5ab555ec09c16cb4f2892292d3d4e620b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 26 Oct 2020 20:53:12 +0000 Subject: [PATCH] Rss icon position applies to left column --- webinterface.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/webinterface.py b/webinterface.py index 0da489d1..71df392f 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3480,7 +3480,7 @@ def htmlProfile(defaultTimeline: str, getLeftColumnContent(baseDir, 'news', domainFull, httpPrefix, translate, iconsDir, False, - False, None) + False, None, False) profileHeaderStr += ' \n' profileHeaderStr += ' \n' else: @@ -5493,7 +5493,8 @@ def htmlHighlightLabel(label: str, highlight: bool) -> str: def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, httpPrefix: str, translate: {}, iconsDir: str, editor: bool, - showBackButton: bool, timelinePath: str) -> str: + showBackButton: bool, timelinePath: str, + rssIconAtTop: bool) -> str: """Returns html content for the left column """ htmlStr = '' @@ -5555,13 +5556,15 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, else: # rss feed for all accounts on the instance rssUrl = httpPrefix + '://' + domainFull + '/blog/rss.xml' - htmlStr += \ + rssIconStr = \ ' ' + \ '' + \
         translate['RSS feed for this site'] + \
         '\n' + if rssIconAtTop: + htmlStr += rssIconStr if editImageClass == 'leftColEdit': htmlStr += ' \n' @@ -5612,6 +5615,8 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, htmlStr += \ '

' + lineStr + '

\n' + if not rssIconAtTop: + htmlStr += '
' + rssIconStr return htmlStr @@ -5843,7 +5848,7 @@ def htmlLinksMobile(baseDir: str, nickname: str, domainFull: str, getLeftColumnContent(baseDir, nickname, domainFull, httpPrefix, translate, iconsDir, editor, - True, timelinePath) + True, timelinePath, True) htmlStr += '\n' + htmlFooter() return htmlStr @@ -6549,7 +6554,7 @@ def htmlTimeline(defaultTimeline: str, leftColumnStr = \ getLeftColumnContent(baseDir, nickname, domainFull, httpPrefix, translate, iconsDir, - editor, False, None) + editor, False, None, rssIconAtTop) tlStr += ' ' + \ leftColumnStr + ' \n' # center column containing posts