summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm2
-rw-r--r--templates/_map.html.ep (renamed from templates/map.html.ep)7
-rw-r--r--templates/history.html.ep7
-rw-r--r--templates/history_map.html.ep7
4 files changed, 22 insertions, 1 deletions
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
index 707b28e..cceec01 100644
--- a/templates/map.html.ep
+++ b/templates/_map.html.ep
@@ -5,6 +5,13 @@
</div>
</div>
+<div class="row">
+ <div class="col s12">
+ <span style="color: #f03;">●</span> Ein-/Ausstiegsstation<br/>
+ <span style="color: #f09;">—</span> Luftlinie zwischen Unterwegshalten
+ </div>
+</div>
+
<script>
var map = L.map('map').setView([51.306, 9.712], 6);
diff --git a/templates/history.html.ep b/templates/history.html.ep
index 607a356..93fa9f7 100644
--- a/templates/history.html.ep
+++ b/templates/history.html.ep
@@ -27,6 +27,13 @@
</div>
% }
+<h2>Auswertungen</h2>
+<div class="row">
+ <div class="col s12 m12 l12 center-align">
+ <a href="/history/map" class="waves-effect waves-light btn"><i class="material-icons left">map</i> Fahrtenkarte</a>
+ </div>
+</div>
+
<h2>Ausfälle und Verspätungen</h2>
<div class="row">
<div class="col s12 m12 l5 center-align">
diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep
new file mode 100644
index 0000000..808b033
--- /dev/null
+++ b/templates/history_map.html.ep
@@ -0,0 +1,7 @@
+<div class="row">
+ <div class="col s12">
+ Karte aller bisherigen Zugfahrten:
+ </div>
+</div>
+
+%= include '_map', station_coordinates => $station_coordinates, station_pairs => $station_pairs