From 733fe2d853cc2aa4f759d2454171e17409551dfb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Nov 2019 15:57:09 +0100 Subject: [PATCH] map: add legend, link to history map from history page --- lib/Travelynx/Controller/Traveling.pm | 2 +- templates/{map.html.ep => _map.html.ep} | 7 +++++++ templates/history.html.ep | 7 +++++++ templates/history_map.html.ep | 7 +++++++ 4 files changed, 22 insertions(+), 1 deletion(-) rename templates/{map.html.ep => _map.html.ep} (83%) create mode 100644 templates/history_map.html.ep diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 1fb43a2..0735512 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -462,7 +462,7 @@ sub map_history { my @routes; $self->render( - template => 'map', + template => 'history_map', with_map => 1, station_coordinates => \@station_coordinates, station_pairs => \@station_pairs diff --git a/templates/map.html.ep b/templates/_map.html.ep similarity index 83% rename from templates/map.html.ep rename to templates/_map.html.ep index 707b28e..cceec01 100644 --- a/templates/map.html.ep +++ b/templates/_map.html.ep @@ -5,6 +5,13 @@ +
+
+ Ein-/Ausstiegsstation
+ Luftlinie zwischen Unterwegshalten +
+
+