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.ep24
1 files changed, 18 insertions, 6 deletions
diff --git a/templates/_map_infobox.html.ep b/templates/_map_infobox.html.ep
index f1da392..42e121d 100644
--- a/templates/_map_infobox.html.ep
+++ b/templates/_map_infobox.html.ep
@@ -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>
% }