From 76cd2e846505ebc595c518c3c19676770c15e518 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 22 May 2022 11:51:45 +0100 Subject: [PATCH] Link location to a maps website --- webapp_create_post.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webapp_create_post.py b/webapp_create_post.py index 38b7fcff9..0e6debae6 100644 --- a/webapp_create_post.py +++ b/webapp_create_post.py @@ -681,8 +681,15 @@ def html_new_post(css_cache: {}, media_instance: bool, translate: {}, date_and_location += date_and_time_str + maps_url = get_config_param(base_dir, 'mapsUrl') + if not maps_url: + maps_url = 'https://www.openstreetmap.org' + location_label_with_link = \ + '' + \ + translate['Location'] + '' date_and_location += \ - edit_text_field(translate['Location'], 'location', '', + edit_text_field(location_label_with_link, 'location', '', 'https://www.openstreetmap.org/#map=') date_and_location += end_edit_section()