forked from indymedia/epicyon
Show rss icon in left column
parent
6fe7641360
commit
2005e81794
Binary file not shown.
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.7 KiB |
|
@ -5192,23 +5192,34 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
|
||||||
'/left_col_image.png" />\n' + \
|
'/left_col_image.png" />\n' + \
|
||||||
' </center>\n'
|
' </center>\n'
|
||||||
|
|
||||||
|
if editImageClass == 'leftColEdit':
|
||||||
|
htmlStr += ' <center>\n'
|
||||||
|
|
||||||
if moderator:
|
if moderator:
|
||||||
if editImageClass == 'leftColEdit':
|
|
||||||
htmlStr += ' <center>\n'
|
|
||||||
# show the edit icon
|
# show the edit icon
|
||||||
htmlStr += \
|
htmlStr += \
|
||||||
' <a href="' + \
|
' <a href="' + \
|
||||||
httpPrefix + '://' + domainFull + \
|
httpPrefix + '://' + domainFull + \
|
||||||
'/users/' + nickname + '/editlinks' + '">' + \
|
'/users/' + nickname + '/editlinks">' + \
|
||||||
'<img class="' + editImageClass + \
|
'<img class="' + editImageClass + \
|
||||||
'" loading="lazy" alt="' + \
|
'" loading="lazy" alt="' + \
|
||||||
translate['Edit Links'] + '" title="' + \
|
translate['Edit Links'] + '" title="' + \
|
||||||
translate['Edit Links'] + '" src="/' + \
|
translate['Edit Links'] + '" src="/' + \
|
||||||
iconsDir + '/edit.png" /></a>\n'
|
iconsDir + '/edit.png" /></a>\n'
|
||||||
if editImageClass == 'leftColEdit':
|
|
||||||
htmlStr += ' <center>\n'
|
# RSS icon
|
||||||
else:
|
htmlStr += \
|
||||||
htmlStr += ' <br>\n'
|
' <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'
|
linksFilename = baseDir + '/accounts/links.txt'
|
||||||
if os.path.isfile(linksFilename):
|
if os.path.isfile(linksFilename):
|
||||||
|
|
Loading…
Reference in New Issue