Compare commits

..

2 commits

2 changed files with 32 additions and 18 deletions

View file

@ -62,10 +62,11 @@ L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
<div class="m-3" id="main">
<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="{{ url_for('index', lat=lat, lon=lon) }}">visit endpoint</a>
| <a href="https://www.openstreetmap.org/#map=17/{{lat }}/{{ lon }}">view in OSM</a>
{% if result.commons_cat %}
| <a href="{{ result.commons_cat.url }}">Commons category</a>
{% endif %}

View file

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