Remove news button from header

main
Bob Mottram 2020-11-29 09:39:56 +00:00
parent 180468477d
commit 291f24f6d6
1 changed files with 1 additions and 13 deletions

View File

@ -62,12 +62,6 @@ def headerButtonsTimeline(defaultTimeline: str,
'/tlblogs"><button class="' + \ '/tlblogs"><button class="' + \
blogsButton + '"><span>' + translate['Blogs'] + \ blogsButton + '"><span>' + translate['Blogs'] + \
'</span></button></a>' '</span></button></a>'
elif defaultTimeline == 'tlnews':
tlStr += \
'<a href="' + usersPath + \
'/tlnews"><button class="' + \
newsButton + '"><span>' + translate['News'] + \
'</span></button></a>'
elif defaultTimeline == 'tlfeatures': elif defaultTimeline == 'tlfeatures':
tlStr += \ tlStr += \
'<a href="' + usersPath + \ '<a href="' + usersPath + \
@ -141,13 +135,7 @@ def headerButtonsTimeline(defaultTimeline: str,
# typically the news button # typically the news button
# but may change if this is a news oriented instance # but may change if this is a news oriented instance
if defaultTimeline != 'tlfeatures': if defaultTimeline == 'tlfeatures':
tlStr += \
'<a href="' + usersPath + \
'/tlnews"><button class="' + \
newsButton + '"><span>' + translate['News'] + \
'</span></button></a>'
else:
if not featuresHeader: if not featuresHeader:
tlStr += \ tlStr += \
'<a href="' + usersPath + \ '<a href="' + usersPath + \