Features button

main
Bob Mottram 2020-11-27 12:42:51 +00:00
parent 0014e5f6e1
commit 42d4589a51
2 changed files with 9 additions and 3 deletions

View File

@ -21,6 +21,7 @@ def headerButtonsTimeline(defaultTimeline: str,
usersPath: str, usersPath: str,
mediaButton: str, mediaButton: str,
blogsButton: str, blogsButton: str,
featuresButton: str,
newsButton: str, newsButton: str,
inboxButton: str, inboxButton: str,
dmButton: str, dmButton: str,
@ -71,7 +72,7 @@ def headerButtonsTimeline(defaultTimeline: str,
tlStr += \ tlStr += \
'<a href="' + usersPath + \ '<a href="' + usersPath + \
'/tlfeatures"><button class="' + \ '/tlfeatures"><button class="' + \
newsButton + '"><span>' + translate['Features'] + \ featuresButton + '"><span>' + translate['Features'] + \
'</span></button></a>' '</span></button></a>'
else: else:
tlStr += \ tlStr += \

View File

@ -135,6 +135,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
# the appearance of buttons - highlighted or not # the appearance of buttons - highlighted or not
inboxButton = 'button' inboxButton = 'button'
blogsButton = 'button' blogsButton = 'button'
featuresButton = 'button'
newsButton = 'button' newsButton = 'button'
dmButton = 'button' dmButton = 'button'
if newDM: if newDM:
@ -156,6 +157,8 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
inboxButton = 'buttonselected' inboxButton = 'buttonselected'
elif boxName == 'tlblogs': elif boxName == 'tlblogs':
blogsButton = 'buttonselected' blogsButton = 'buttonselected'
elif boxName == 'tlfeatures':
featuresButton = 'buttonselected'
elif boxName == 'tlnews': elif boxName == 'tlnews':
newsButton = 'buttonselected' newsButton = 'buttonselected'
elif boxName == 'dm': elif boxName == 'dm':
@ -374,7 +377,8 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
tlStr += \ tlStr += \
headerButtonsTimeline(defaultTimeline, boxName, pageNumber, headerButtonsTimeline(defaultTimeline, boxName, pageNumber,
translate, usersPath, mediaButton, translate, usersPath, mediaButton,
blogsButton, newsButton, inboxButton, blogsButton, featuresButton,
newsButton, inboxButton,
dmButton, newDM, repliesButton, dmButton, newDM, repliesButton,
newReply, minimal, sentButton, newReply, minimal, sentButton,
sharesButtonStr, bookmarksButtonStr, sharesButtonStr, bookmarksButtonStr,
@ -415,7 +419,8 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
tlStr += \ tlStr += \
headerButtonsTimeline(defaultTimeline, boxName, pageNumber, headerButtonsTimeline(defaultTimeline, boxName, pageNumber,
translate, usersPath, mediaButton, translate, usersPath, mediaButton,
blogsButton, newsButton, inboxButton, blogsButton, featuresButton,
newsButton, inboxButton,
dmButton, newDM, repliesButton, dmButton, newDM, repliesButton,
newReply, minimal, sentButton, newReply, minimal, sentButton,
sharesButtonStr, bookmarksButtonStr, sharesButtonStr, bookmarksButtonStr,