Update query error template to extend base.html

This commit is contained in:
Edward Betts 2023-11-25 13:58:39 +00:00
parent b785bdb495
commit 65d1fbf6fa

View file

@ -1,28 +1,41 @@
<!doctype html> {% extends "base.html" %}
<html lang="en">
<head>
<meta charset="utf-8">
<title>Geocode to commons</title>
</head>
<body> {% block title %}Geocode to Commons: error{% endblock %}
{% block content %}
<div class="m-3">
<h1>Geocode coordinates to Commons Category</h1> <h1>Geocode coordinates to Commons Category</h1>
<p><a href="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a> <p>
<a href="{{ url_for('index') }}">home</a>
| <a href="https://www.openstreetmap.org/#map=17/{{lat }}/{{ lon }}">view in OSM</a> |
<a href="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a>
| <a href="{{ url_for('detail_page', lat=lat, lon=lon) }}">#</a> |
<a href="https://www.openstreetmap.org/#map=17/{{lat }}/{{ lon }}">view in OSM</a>
|
<a href="{{ url_for('detail_page', lat=lat, lon=lon) }}">#</a>
</p> </p>
<p>latitude: {{ lat }} / longitude: {{ lon }}</p>
{% if error %}
<h2>error</h2>
<p>{{ error }}</p>
{% endif %}
{% if query %}
<h2>query</h2> <h2>query</h2>
<pre>{{ query }}</pre> <pre>{{ query }}</pre>
{% endif %}
{% if r %}
<h2>reply</h2> <h2>reply</h2>
<pre>{{ r.text }}</pre> <pre>{{ r.text }}</pre>
{% endif %}
</body> </div>
</html> {% endblock %}