Show rss icon in left column

merge-requests/8/head
Bob Mottram 2020-10-02 16:58:25 +01:00
parent 6fe7641360
commit 2005e81794
2 changed files with 18 additions and 7 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -5192,23 +5192,34 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
'/left_col_image.png" />\n' + \
' </center>\n'
if editImageClass == 'leftColEdit':
htmlStr += ' <center>\n'
if moderator:
if editImageClass == 'leftColEdit':
htmlStr += ' <center>\n'
# show the edit icon
htmlStr += \
' <a href="' + \
httpPrefix + '://' + domainFull + \
'/users/' + nickname + '/editlinks' + '">' + \
'/users/' + nickname + '/editlinks">' + \
'<img class="' + editImageClass + \
'" loading="lazy" alt="' + \
translate['Edit Links'] + '" title="' + \
translate['Edit Links'] + '" src="/' + \
iconsDir + '/edit.png" /></a>\n'
if editImageClass == 'leftColEdit':
htmlStr += ' <center>\n'
else:
htmlStr += ' <br>\n'
# RSS icon
htmlStr += \
' <a href="' + \
httpPrefix + '://' + domainFull + \
'/blog/' + nickname + '/rss.xml">' + \
'<img class="' + editImageClass + \
'" loading="lazy" alt="RSS" title="RSS" src="/' + \
iconsDir + '/rss.png" /></a>\n'
if editImageClass == 'leftColEdit':
htmlStr += ' <center>\n'
else:
htmlStr += ' <br>\n'
linksFilename = baseDir + '/accounts/links.txt'
if os.path.isfile(linksFilename):