diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-10-09 15:42:37 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-10-09 15:42:37 +0200 |
commit | 09943158b6eaa50d1dcdb9adf9df9220b927e9fa (patch) | |
tree | b7aa451f1d7fcfb37c10808dbd93aefff261b4d6 /templates/infoscreen.html.ep | |
parent | 7d7acafbc2614cb567bb0f761b020ab547367d60 (diff) |
infoscreen: highlight trams from HAFAS backends
Diffstat (limited to 'templates/infoscreen.html.ep')
-rw-r--r-- | templates/infoscreen.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index 8cfe5cb..aeed64e 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -28,7 +28,7 @@ % my $linetype = q{}; % if ($departure->can('type')) { % given ($departure->type) { -% when ($_ =~ m{enbahn$}) { $linetype = 'tram' } +% when ($_ =~ m{ (?: enbahn $ ) | Tram | STR }ix) { $linetype = 'tram' } % when ('S-Bahn') { $linetype = 'sbahn' } % when ([qw[NE Niederflurbus SB Bus]]) { $linetype = 'bus' } % when ('U-Bahn') { $linetype = 'ubahn' } |