From 6450f0e1f9925063831b688079107cc594f3c11a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 20 May 2024 19:55:37 +0100 Subject: [PATCH] Sequence of header icons --- webapp_headerbuttons.py | 49 +++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/webapp_headerbuttons.py b/webapp_headerbuttons.py index 25f9c55b3..e5cadc394 100644 --- a/webapp_headerbuttons.py +++ b/webapp_headerbuttons.py @@ -328,29 +328,23 @@ def header_buttons_timeline(default_timeline: str, # 4. the calendar button if not is_text_browser: if not features_header: - calendar_alt_text = translate['Calendar'] - if new_calendar_event: - # indicate that the calendar icon is highlighted - calendar_alt_text = '*' + calendar_alt_text + '*' + # the show/hide button, for a simpler header appearance if not icons_as_buttons: tl_str += \ ' ' + \ - '| ' + calendar_alt_text + \
+                    users_path + '/minimal' + \ + '| ' + translate['Show/Hide Buttons'] + \
                     '\n' else: tl_str += \ - '' - if not features_header: # the hide announces button if show_announces: hide_announces_icon = 'repeat_hide.png' @@ -375,21 +369,28 @@ def header_buttons_timeline(default_timeline: str, '' + hide_announces_text + \ '' - # the show/hide button, for a simpler header appearance + # calendar button + if not features_header: + calendar_alt_text = translate['Calendar'] + if new_calendar_event: + # indicate that the calendar icon is highlighted + calendar_alt_text = '*' + calendar_alt_text + '*' if not icons_as_buttons: tl_str += \ ' ' + \ - '| ' + translate['Show/Hide Buttons'] + \
+                    users_path + calendar_path + \
+                    '' + \ + '| ' + calendar_alt_text + \
                     '\n' else: tl_str += \ - '' if features_header: