From a31eedef24b0c14aa0898bfa8a5ad949cae58dc3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 4 Jun 2015 18:26:51 +0200 Subject: infoscreen template: use route_interesting if available --- templates/infoscreen.html.ep | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'templates') 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 -% 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')) { -- cgit v1.2.3