summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-08-06 16:02:05 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-08-06 16:02:05 +0200
commit9765a97011272bde005dd96a43d10e7e887ded0b (patch)
tree090a3e2fcc7c8b567f798050f77df9c89c501508
parentc996e2abf0b0830fbe3539c25ff4fe25e33a165d (diff)
infoscreen: detail view: all times in the timetable are schedule data
-rw-r--r--templates/infoscreen.html.ep9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index c20589d..54b1605 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">