From 09943158b6eaa50d1dcdb9adf9df9220b927e9fa Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 9 Oct 2015 15:42:37 +0200 Subject: infoscreen: highlight trams from HAFAS backends --- templates/infoscreen.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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' } -- cgit v1.2.3