Remove show/hide button for text mode browsers

merge-requests/25/head
Bob Mottram 2022-07-13 14:16:54 +01:00
parent 82144b7937
commit aa78d5be2a
1 changed files with 17 additions and 16 deletions

View File

@ -323,22 +323,23 @@ def header_buttons_timeline(default_timeline: str,
'<span>' + translate['Calendar'] + \
'</span></button></a>'
if not features_header:
# the show/hide button, for a simpler header appearance
if not icons_as_buttons:
tl_str += \
' <a class="imageAnchor" href="' + \
users_path + '/minimal" tabindex="3">' + \
'<img loading="lazy" decoding="async" src="/icons' + \
'/showhide.png" title="' + translate['Show/Hide Buttons'] + \
'" alt="| ' + translate['Show/Hide Buttons'] + \
'" class="timelineicon"/></a>\n'
else:
tl_str += \
'<a href="' + users_path + '/minimal' + \
'" tabindex="3"><button class="button">' + \
'<span>' + translate['Show/Hide Buttons'] + \
'</span></button></a>'
if not features_header:
# the show/hide button, for a simpler header appearance
if not icons_as_buttons:
tl_str += \
' <a class="imageAnchor" href="' + \
users_path + '/minimal" tabindex="3">' + \
'<img loading="lazy" decoding="async" src="/icons' + \
'/showhide.png" title="' + \
translate['Show/Hide Buttons'] + \
'" alt="| ' + translate['Show/Hide Buttons'] + \
'" class="timelineicon"/></a>\n'
else:
tl_str += \
'<a href="' + users_path + '/minimal' + \
'" tabindex="3"><button class="button">' + \
'<span>' + translate['Show/Hide Buttons'] + \
'</span></button></a>'
if features_header:
tl_str += \