Add Settings link to News instance

alt-html-css
Admin 2020-11-24 18:38:10 +00:00
parent 3c86807116
commit 24af23e70a
1 changed files with 13 additions and 5 deletions

View File

@ -270,11 +270,19 @@ def headerButtonsTimeline(defaultTimeline: str,
'translateText': 'Search',
'iconClass': 'icon-search'}
))
activeButtonList.append(('minimal',
{'pageRef': '/minimal',
'translateText': 'Show/Hide Buttons',
'iconClass': 'icon-showhide'}
))
# TODO: Less hacky solution - or make sure "settings" button has an icon
if defaultTimeline == 'tlnews':
activeButtonList.append(('editprofile',
{'pageRef': '/editprofile',
'translateText': 'Settings'}
))
else:
activeButtonList.append(('minimal',
{'pageRef': '/minimal',
'translateText': 'Show/Hide Buttons',
'iconClass': 'icon-showhide'}
))
# Generate HTML lists