Don't show calendar in features timeline

main
Bob Mottram 2020-10-27 18:14:58 +00:00
parent 73b38b0b3a
commit 35598b9e48
1 changed files with 42 additions and 37 deletions

View File

@ -6042,10 +6042,14 @@ def getTimelineButtonHeader(defaultTimeline: str,
inboxButton+'"><span>' + translate['Inbox'] + \
'</span></button></a>\n'
isFeaturesTimeline = \
defaultTimeline == 'tlnews' and boxName != 'tlnews'
if not isFeaturesTimeline:
# typically the blogs button
# but may change if this is a blogging oriented instance
if defaultTimeline != 'tlblogs':
if not minimal:
if not minimal and not isFeaturesTimeline:
titleStr = translate['Blogs']
if defaultTimeline == 'tlnews':
titleStr = translate['Article']
@ -6161,6 +6165,7 @@ def getTimelineButtonHeader(defaultTimeline: str,
print('TIMELINE TIMING ' + boxName + ' 5 = ' + str(timeDiff))
# the calendar button
if not isFeaturesTimeline:
calendarAltText = translate['Calendar']
if newCalendarEvent:
# indicate that the calendar icon is highlighted