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 %} 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 %}