summaryrefslogtreecommitdiff
path: root/templates/_map_infobox.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_map_infobox.html.ep')
-rw-r--r--templates/_map_infobox.html.ep26
1 files changed, 19 insertions, 7 deletions
diff --git a/templates/_map_infobox.html.ep b/templates/_map_infobox.html.ep
index f1da392..16625f5 100644
--- a/templates/_map_infobox.html.ep
+++ b/templates/_map_infobox.html.ep
@@ -1,6 +1,6 @@
<div class="container" id="infobox" style="margin-top: 1ex; margin-bottom: 1ex;">
<div class="journey" id="jdata"
-data-req="<%= stash('ajax_req') %>"
+data-req="<%= stash('ajax_req') =~ s{#}{%23}gr %>"
data-route="<%= stash('ajax_route') %>"
data-poly="<%= stash('ajax_polyline') %>"
>
@@ -15,7 +15,9 @@ data-poly="<%= stash('ajax_polyline') %>"
<div class="nextstop">
% if ($next->{type} eq 'present' and $next->{station}{dep} and $next->{station}{arr}) {
Aufenthalt in <strong><%= $next->{station}{name} %></strong>
- an Gleis <strong><%= $next->{station}{platform} %></strong>
+ % if ($next->{station}{platform}) {
+ an Gleis <strong><%= $next->{station}{platform} %></strong>
+ % }
bis <strong><%= $next->{station}{dep}->strftime('%H:%M') %></strong>
% if ($next->{station}{dep_delay}) {
%= sprintf('(%+d)', $next->{station}{dep_delay})
@@ -23,7 +25,9 @@ data-poly="<%= stash('ajax_polyline') %>"
% }
% elsif ($next->{type} eq 'present' and $next->{station}{dep}) {
Abfahrt in <strong><%= $next->{station}{name} %></strong>
- von Gleis <strong><%= $next->{station}{platform} %></strong>
+ % if ($next->{station}{platform}) {
+ von Gleis <strong><%= $next->{station}{platform} %></strong>
+ % }
um <strong><%= $next->{station}{dep}->strftime('%H:%M') %></strong>
% if ($next->{station}{dep_delay}) {
%= sprintf('(%+d)', $next->{station}{dep_delay})
@@ -32,7 +36,9 @@ data-poly="<%= stash('ajax_polyline') %>"
% elsif ($next->{type} eq 'present' and $next->{station}{arr}) {
Endstation erreicht um
<strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
- auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % if ($next->{station}{platform}) {
+ auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % }
% if ($next->{station}{arr_delay}) {
%= sprintf('(%+d)', $next->{station}{arr_delay})
% }
@@ -40,7 +46,9 @@ data-poly="<%= stash('ajax_polyline') %>"
% elsif ($next->{type} eq 'present' and $next->{station}{arr}) {
Zug steht in
<strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
- auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % if ($next->{station}{platform}) {
+ auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % }
% }
% elsif ($next->{type} eq 'next' and $next->{station}{arr}) {
Nächster Halt:
@@ -49,12 +57,16 @@ data-poly="<%= stash('ajax_polyline') %>"
% if ($next->{station}{arr_delay}) {
%= sprintf('(%+d)', $next->{station}{arr_delay})
% }
- auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % if ($next->{station}{platform}) {
+ auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % }
% }
% elsif ($next->{type} eq 'next') {
Nächster Halt:
<strong><%= $next->{station}{name} %></strong>
- auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % if ($next->{station}{platform}) {
+ auf Gleis <strong><%= $next->{station}{platform} %></strong>
+ % }
% }
</div>
% }