From 23f63b2bddd4a4cd17d32dc683729e732e159c83 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 31 Jul 2022 16:14:11 -0700 Subject: [PATCH] add map display on photo pages --- styles/less/main.less | 8 +++++++ templates/photo.html | 54 ++++++++++++++++++++++++++++++++++--------- 2 files changed, 51 insertions(+), 11 deletions(-) diff --git a/styles/less/main.less b/styles/less/main.less index 9ea2c58..1b9433b 100644 --- a/styles/less/main.less +++ b/styles/less/main.less @@ -344,3 +344,11 @@ ul.form-pager { span.uuid { font-family: monospace; } +span.coords { + font-family: monospace; +} + +.single-photo-map span.coords { + text-align: center; + display: block; +} diff --git a/templates/photo.html b/templates/photo.html index 419d177..f2a9f74 100644 --- a/templates/photo.html +++ b/templates/photo.html @@ -14,8 +14,12 @@ {% endblock %} -{% block body %} +{% block head %} + + +{% endblock %} +{% block body %}
- {% if image.description %} -
-

Description

-

{{ image.description }}

+ {% if image.lat and image.lon %} +
+
+ +
+ {{ image.lat }}, {{ image.lon }} +
{% endif %} + {% if image.description %} +
+

Description

+

{{ image.description }}

+
+ {% endif %}

Versions

    @@ -106,5 +139,4 @@
- {% endblock %}