From b6e0159e589727850b96a01f59ebab52d17f0037 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 May 2025 18:31:40 +0100 Subject: [PATCH] Time prefix --- webapp_post.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index f0008953b..5541d8d0d 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -3219,7 +3219,11 @@ def individual_post_as_html(signing_priv_key_pem: str, event_category = '
' + category_text + ': ' + \ category_str + '\n' if time_span_str: - time_span_str = '
' + time_span_str + time_text = 'Time' + if translate.get('Time'): + time_text = translate['Time'] + time_span_str = \ + '
' + time_text + ': ' + time_span_str map_addr_str = '' if '
' in location_str: # append the address after the map @@ -3277,7 +3281,10 @@ def individual_post_as_html(signing_priv_key_pem: str, map_str += '

' + locn_text + ': ' + \ location_str + '

\n' if time_span_str: - map_str += '

' + time_span_str + '

\n' + time_text = 'Time' + if translate.get('Time'): + time_text = translate['Time'] + map_str += '

' + time_text + ': ' + time_span_str + '

\n' if not map_str and not location_str: if category_str: @@ -3287,7 +3294,10 @@ def individual_post_as_html(signing_priv_key_pem: str, map_str += '

' + category_text + ': ' + \ category_str + '

\n' if time_span_str: - map_str += '

' + time_span_str + '

\n' + time_text = 'Time' + if translate.get('Time'): + time_text = translate['Time'] + map_str += '

' + time_text + ': ' + time_span_str + '

\n' if is_muted: content_str = ''