From 24af23e70ac3684bc5598fb2ddd0996c85849bf0 Mon Sep 17 00:00:00 2001 From: OMN Date: Tue, 24 Nov 2020 18:38:10 +0000 Subject: [PATCH] Add Settings link to News instance --- webapp_headerbuttons.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/webapp_headerbuttons.py b/webapp_headerbuttons.py index a58b9d20..e8c3b235 100644 --- a/webapp_headerbuttons.py +++ b/webapp_headerbuttons.py @@ -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