diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-08-16 13:40:31 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-08-16 13:40:31 +0200 |
commit | 63abc52ab847bc425e6276f93252ddbcf8ca14bb (patch) | |
tree | 3986af6a24784514e1147f580f15bbca4c5c0e8c | |
parent | 41167273786ab3d22c540d6a8219e1bf16281124 (diff) |
infoscreen: shorten IC/ICE names
-rw-r--r-- | templates/infoscreen.html.ep | 6 |
1 files changed, 5 insertions, 1 deletions
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; % } </span> <!-- line --> <span class="moreinfo"> |