diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-10-08 22:21:36 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-10-08 22:21:36 +0200 |
commit | 7d7acafbc2614cb567bb0f761b020ab547367d60 (patch) | |
tree | 1bb8b97ac9c8bdc67feb8aefd6a2e42e4ff496bf /templates | |
parent | 698dbb9ee9bd8e4facefd269d4851aa148912c00 (diff) |
infoscreen: add route timetable for ASEAG backend
Diffstat (limited to 'templates')
-rw-r--r-- | templates/infoscreen.html.ep | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index 1c0974f..8cfe5cb 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -99,6 +99,27 @@ % } </table> % } +% elsif ($departure->isa('Travel::Status::DE::URA::Result')) { + Fahrplan: + <table class="scheduled"> +% for my $stop ($departure->route_pre) { + <tr class="routepre"><td class="time"> +%= $stop->[0]->strftime('%H:%M:%S') + </td> + <td class="stop"><%= $stop->[1] %></td></tr> +% } + <tr class="routenow"><td class="time"> + <%= $departure->time %> + </td> + <td class="stop"><%= $id_name %> <%= $id_stop %></td></tr> +% for my $stop ($departure->route_post) { + <tr class="routepost"><td class="time"> +%= $stop->[0]->strftime('%H:%M:%S') + </td> + <td class="stop"><%= $stop->[1] %></td></tr> +% } + </table> +% } </span> <!-- moreinfo --> <span class="route"> % if ($departure->can('route_interesting') and $departure->route_interesting) { |