From 0bfb71d78d1a7996fe0fb32af063ccfdc6ceea15 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Nov 2019 00:01:50 +0100 Subject: add map view of past journeys. unfinished and unreferenced. --- templates/layouts/default.html.ep | 6 ++++++ templates/map.html.ep | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 templates/map.html.ep (limited to 'templates') diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index b6dcdc7..66ab4e7 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -52,6 +52,9 @@ %= stylesheet "/static/${av}/css/material-icons.css" %= stylesheet "/static/${av}/css/local.css" + % if (stash('with_map')) { + %= stylesheet "/static/${av}/leaflet/leaflet.css" + % } %= javascript "/static/${av}/js/jquery-3.4.1.min.js" %= javascript "/static/${av}/js/materialize.min.js" %= javascript "/static/${av}/js/travelynx-actions.min.js" @@ -61,6 +64,9 @@ % if (stash('with_autocomplete')) { %= javascript "/static/${av}/js/autocomplete.min.js" % } + % if (stash('with_map')) { + %= javascript "/static/${av}/leaflet/leaflet.js" + % } diff --git a/templates/map.html.ep b/templates/map.html.ep new file mode 100644 index 0000000..1930e51 --- /dev/null +++ b/templates/map.html.ep @@ -0,0 +1,38 @@ +
+
+
+
+
+
+ + -- cgit v1.2.3