From b785bdb495b824237032b12b5166f956de5ab1ae Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 25 Nov 2023 13:58:13 +0000 Subject: [PATCH 1/2] Add link from detail page to home --- templates/detail.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/detail.html b/templates/detail.html index 0fc966f..2504d9a 100644 --- a/templates/detail.html +++ b/templates/detail.html @@ -62,10 +62,11 @@ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {

Geocode coordinates to Commons Category

-

visit endpoint - +

+home +| +visit endpoint | view in OSM - {% if result.commons_cat %} | Commons category {% endif %} From 65d1fbf6fa02ed0040e32a47ee749a33a4db37dc Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 25 Nov 2023 13:58:39 +0000 Subject: [PATCH 2/2] Update query error template to extend base.html --- templates/query_error.html | 43 +++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/templates/query_error.html b/templates/query_error.html index 9c83655..731efe2 100644 --- a/templates/query_error.html +++ b/templates/query_error.html @@ -1,28 +1,41 @@ - - - - - Geocode to commons - +{% extends "base.html" %} - +{% block title %}Geocode to Commons: error{% endblock %} + +{% block content %} +

Geocode coordinates to Commons Category

-

visit endpoint - -| view in OSM - -| # - +

+home +| +visit endpoint +| +view in OSM +| +#

+

latitude: {{ lat }} / longitude: {{ lon }}

+ +{% if error %} +

error

+ +

{{ error }}

+ +{% endif %} + +{% if query %}

query

{{ query }}
+{% endif %} +{% if r %}

reply

{{ r.text }}
+{% endif %} - - +
+{% endblock %}