From 63abc52ab847bc425e6276f93252ddbcf8ca14bb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 16 Aug 2016 13:40:31 +0200 Subject: infoscreen: shorten IC/ICE names --- templates/infoscreen.html.ep | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index 8ff8d96..880180f 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -47,7 +47,11 @@ %= $departure->line_no % } % else { -%= $departure->line +% my $line = $departure->line; +% if ($line =~ m{^IC}) { +% $line = join(q{ }, (split(qr{ }, $line))[0,1]); +% } +%= $line; % } -- cgit v1.2.3