Right column parameters

main
Bob Mottram 2020-10-02 20:32:33 +01:00
parent 6b55707852
commit 9f32aacdd3
1 changed files with 7 additions and 3 deletions

View File

@ -5268,7 +5268,9 @@ def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
return htmlStr
def getRightColumnContent(baseDir: str, nickname: str, domain: str) -> str:
def getRightColumnContent(baseDir: str, nickname: str, domainFull: str,
httpPrefix: str, translate: {},
iconsDir: str, moderator: bool) -> str:
"""Returns html content for the right column
"""
htmlStr = ''
@ -5741,7 +5743,7 @@ def htmlTimeline(defaultTimeline: str,
' <a href="' + usersPath + \
'/calendar"><button class="buttonevent">' + \
translate['Happening This Week'] + '</button></a>\n'
# the search button
tlStr += \
' <a class="imageAnchor" href="' + usersPath + \
@ -5937,7 +5939,9 @@ def htmlTimeline(defaultTimeline: str,
tlStr += ' </td>\n'
# right column
rightColumnStr = getRightColumnContent(baseDir, nickname, domain)
rightColumnStr = getRightColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate, iconsDir,
moderator)
tlStr += ' <td class="col-right">' + rightColumnStr + '</td>\n'
# benchmark 9