summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-04 18:26:51 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-04 18:26:51 +0200
commita31eedef24b0c14aa0898bfa8a5ad949cae58dc3 (patch)
tree6b2a8208a49adc9742eecd2f4486a4c4f9dbb360 /templates
parentde562c55b1d67582f3102aae71fe02dd2ebd0242 (diff)
infoscreen template: use route_interesting if available
Diffstat (limited to 'templates')
-rw-r--r--templates/infoscreen.html.ep5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 1fdada3..acf5140 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -38,7 +38,10 @@
%= $departure->line
</span> <!-- line -->
<span class="route">
-% if ($departure->can('lineref') and $departure->lineref) {
+% if ($departure->can('route_interesting') and $departure->route_interesting) {
+%= join(' - ', map { $_->{stop_suf} } ($departure->route_interesting));
+% }
+% elsif ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route
% }
% elsif ($departure->can('route_timetable')) {