summaryrefslogtreecommitdiff
path: root/templates/route_map.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-06-28 08:59:40 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-06-28 08:59:40 +0200
commit9710189897448f3f4a144e27325578c900250068 (patch)
treef6cdb78b602e6f9e1f84f3a1c2232c184df05a6f /templates/route_map.html.ep
parent4587af307d0c5fc8b53d082f346fc5f5ba042168 (diff)
add experimental (and unreferenced) train intersection calculation
Diffstat (limited to 'templates/route_map.html.ep')
-rw-r--r--templates/route_map.html.ep5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/route_map.html.ep b/templates/route_map.html.ep
index 6f5643b..1ba96bc 100644
--- a/templates/route_map.html.ep
+++ b/templates/route_map.html.ep
@@ -1,6 +1,9 @@
-% if ($origin and $destination) {
+% if (stash('origin') and stash('destination')) {
%= include '_map_infobox'
% }
+% elsif (stash('intersection')) {
+ %= include '_intersection_infobox'
+% }
<div class="container">
<div id="map" style="height: 500px;">