From 18db5e16950801af41f54ed2a2baf08f905a8ca9 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 20 Oct 2024 14:40:58 +0200 Subject: Map: refactor estimate_train_positions{,2} to be independent of HAFAS modules --- templates/_map_infobox.html.ep | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/_map_infobox.html.ep b/templates/_map_infobox.html.ep index 7372802..16625f5 100644 --- a/templates/_map_infobox.html.ep +++ b/templates/_map_infobox.html.ep @@ -14,7 +14,7 @@ data-poly="<%= stash('ajax_polyline') %>" % if (my $next = stash('next_stop')) {
% if ($next->{type} eq 'present' and $next->{station}{dep} and $next->{station}{arr}) { - Aufenthalt in <%= $next->{station}->loc->name %> + Aufenthalt in <%= $next->{station}{name} %> % if ($next->{station}{platform}) { an Gleis <%= $next->{station}{platform} %> % } @@ -24,7 +24,7 @@ data-poly="<%= stash('ajax_polyline') %>" % } % } % elsif ($next->{type} eq 'present' and $next->{station}{dep}) { - Abfahrt in <%= $next->{station}->loc->name %> + Abfahrt in <%= $next->{station}{name} %> % if ($next->{station}{platform}) { von Gleis <%= $next->{station}{platform} %> % } @@ -52,7 +52,7 @@ data-poly="<%= stash('ajax_polyline') %>" % } % elsif ($next->{type} eq 'next' and $next->{station}{arr}) { Nächster Halt: - <%= $next->{station}->loc->name %> + <%= $next->{station}{name} %> um <%= $next->{station}{arr}->strftime('%H:%M') %> % if ($next->{station}{arr_delay}) { %= sprintf('(%+d)', $next->{station}{arr_delay}) @@ -63,7 +63,7 @@ data-poly="<%= stash('ajax_polyline') %>" % } % elsif ($next->{type} eq 'next') { Nächster Halt: - <%= $next->{station}->loc->name %> + <%= $next->{station}{name} %> % if ($next->{station}{platform}) { auf Gleis <%= $next->{station}{platform} %> % } -- cgit v1.2.3