From 70f85b6e97046d4e7921a4a7ed0ef7c310725590 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 9 Apr 2024 16:38:18 +0100 Subject: [PATCH] In text mode browsers don't show SHOW MORE, because there is no way to hide or expand sections --- webapp_timeline.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/webapp_timeline.py b/webapp_timeline.py index c7aa0fe02..39d8a8d2d 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -800,8 +800,8 @@ def html_timeline(default_timeline: str, 'src="' + users_path + '/' + banner_file + '" />\n' + \ '\n' + is_text_browser = text_mode_browser(ua_str) if full_width_tl_button_header: - is_text_browser = text_mode_browser(ua_str) tl_str += \ header_buttons_timeline(default_timeline, box_name, page_number, translate, users_path, media_button, @@ -1124,6 +1124,11 @@ def html_timeline(default_timeline: str, elif item_ctr == 0: tl_str += _get_help_for_timeline(base_dir, box_name) + # if using a text mode browser then don't show SHOW MORE because there + # is no way to hide/expand sections + if is_text_browser: + tl_str = tl_str.replace(translate['SHOW MORE'], '') + tl_str += \ _html_timeline_end(base_dir, nickname, domain_full, translate,