diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-08-13 22:27:52 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-08-13 22:27:52 +0200 |
commit | 65634e360e73592369616093ce5b49da38f28796 (patch) | |
tree | 17b96994e811f8ac9a729a8a73a3aa13b00c0e03 /templates/infoscreen.html.ep | |
parent | 146f9df71bfb6f883ba557510dc282458348e260 (diff) | |
parent | 9bee75d432365d44af46f5d500f7d210b867cc18 (diff) |
Merge branch 'master' of lastlight:var/git_root/vrr-fakedisplay
Diffstat (limited to 'templates/infoscreen.html.ep')
-rw-r--r-- | templates/infoscreen.html.ep | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index c20589d..4a4f309 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -76,7 +76,14 @@ </td> <td class="stop"><%= $stop->name %></td></tr> % } - <tr class="routenow"><td class="time"><%= $departure->time %></td> + <tr class="routenow"><td class="time"> +% if ($departure->can('sched_time')) { + <%= $departure->sched_time %> +% } +% else { + <%= $departure->time %> +% } + </td> <td class="stop"><%= $id_name %> <%= $id_stop %></td></tr> % for my $stop ($departure->route_post) { <tr class="routepost"><td class="time"> @@ -100,7 +107,7 @@ </span> <!-- moreinfo --> <span class="route"> % if ($departure->can('route_interesting') and $departure->route_interesting) { -%= join(' - ', map { $_->name_suf } ($departure->route_interesting)); +%= join(' - ', map { ref($_) ? $_->name_suf : $_ } ($departure->route_interesting)); % } % elsif ($departure->can('lineref') and $departure->lineref) { %= $departure->lineref->route @@ -124,11 +131,13 @@ <span class="delay"> FĂ„LLT AUS </span> % } % else { -% if ($departure->countdown > 0) { - <%= $departure->countdown %> min -% } -% else { - sofort +% if ($departure->can('countdown')) { +% if ($departure->countdown > 0) { + <%= $departure->countdown %> min +% } +% else { + sofort +% } % } % } </span> <!-- countdown --> |