diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-20 14:40:58 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-20 14:40:58 +0200 |
commit | 18db5e16950801af41f54ed2a2baf08f905a8ca9 (patch) | |
tree | 3cd550ab5d6df73d503876a19b3e89b43d73b88e /templates | |
parent | 2c0bed6d0f642cab07da4a27adfb70428020e015 (diff) |
Map: refactor estimate_train_positions{,2} to be independent of HAFAS modules
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_map_infobox.html.ep | 8 |
1 files changed, 4 insertions, 4 deletions
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')) { <div class="nextstop"> % if ($next->{type} eq 'present' and $next->{station}{dep} and $next->{station}{arr}) { - Aufenthalt in <strong><%= $next->{station}->loc->name %></strong> + Aufenthalt in <strong><%= $next->{station}{name} %></strong> % if ($next->{station}{platform}) { an Gleis <strong><%= $next->{station}{platform} %></strong> % } @@ -24,7 +24,7 @@ data-poly="<%= stash('ajax_polyline') %>" % } % } % elsif ($next->{type} eq 'present' and $next->{station}{dep}) { - Abfahrt in <strong><%= $next->{station}->loc->name %></strong> + Abfahrt in <strong><%= $next->{station}{name} %></strong> % if ($next->{station}{platform}) { von Gleis <strong><%= $next->{station}{platform} %></strong> % } @@ -52,7 +52,7 @@ data-poly="<%= stash('ajax_polyline') %>" % } % elsif ($next->{type} eq 'next' and $next->{station}{arr}) { Nächster Halt: - <strong><%= $next->{station}->loc->name %></strong> + <strong><%= $next->{station}{name} %></strong> um <strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong> % 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: - <strong><%= $next->{station}->loc->name %></strong> + <strong><%= $next->{station}{name} %></strong> % if ($next->{station}{platform}) { auf Gleis <strong><%= $next->{station}{platform} %></strong> % } |