Add link from detail page to home

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

View file

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