Edit icon

main
Bob Mottram 2020-10-01 18:58:12 +01:00
parent 3e26f5f745
commit 1e9a592877
1 changed files with 5 additions and 4 deletions

View File

@ -5151,7 +5151,8 @@ def htmlHighlightLabel(label: str, highlight: bool) -> str:
def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str, def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
httpPrefix: str, translate: {}) -> str: httpPrefix: str, translate: {},
iconsDir: str) -> str:
"""Returns html content for the left column """Returns html content for the left column
""" """
htmlStr = \ htmlStr = \
@ -5159,8 +5160,8 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
' <a href="' + \ ' <a href="' + \
httpPrefix + '://' + domainFull + \ httpPrefix + '://' + domainFull + \
'/users/' + nickname + '/editlinks' + '">' + \ '/users/' + nickname + '/editlinks' + '">' + \
'<button class="editLinksBtn">' + \ '<img loading="lazy" alt="" title="" src="/' + \
translate['Edit Links'] + '</button></a>\n' + \ iconsDir + '/edit.png"/></a>\n' + \
' </center>\n' ' </center>\n'
return htmlStr return htmlStr
@ -5483,7 +5484,7 @@ def htmlTimeline(defaultTimeline: str,
# left column # left column
leftColumnStr = \ leftColumnStr = \
getLeftColumnContent(baseDir, nickname, domainFull, getLeftColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate) httpPrefix, translate, iconsDir)
tlStr += ' <td class="col-left">' + leftColumnStr + '</td>\n' tlStr += ' <td class="col-left">' + leftColumnStr + '</td>\n'
# center column containing posts # center column containing posts
tlStr += ' <td class="col-center">\n' tlStr += ' <td class="col-center">\n'