Show news in minimal mode

merge-requests/8/head
Bob Mottram 2020-10-09 22:23:55 +01:00
parent 4117ab3a7b
commit 00b9d1fac0
1 changed files with 10 additions and 12 deletions

View File

@ -5924,19 +5924,17 @@ def htmlTimeline(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 != 'tlnews': if defaultTimeline != 'tlnews':
if not minimal: tlStr += \
tlStr += \ ' <a href="' + usersPath + \
' <a href="' + usersPath + \ '/tlnews"><button class="' + \
'/tlnews"><button class="' + \ newsButton + '"><span>' + translate['News'] + \
newsButton + '"><span>' + translate['News'] + \ '</span></button></a>\n'
'</span></button></a>\n'
else: else:
if not minimal: tlStr += \
tlStr += \ ' <a href="' + usersPath + \
' <a href="' + usersPath + \ '/inbox"><button class="' + \
'/inbox"><button class="' + \ inboxButton + '"><span>' + translate['Inbox'] + \
inboxButton + '"><span>' + translate['Inbox'] + \ '</span></button></a>\n'
'</span></button></a>\n'
# button for the outbox # button for the outbox
tlStr += \ tlStr += \