From 69568899ff68292fb4855bf5906fb3f56c72d9a7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Dec 2019 01:05:43 +0100 Subject: set S-Bahn type for non-DB S-Bahn trains as well --- templates/infoscreen.html.ep | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/infoscreen.html.ep') diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index 8b1dd5c..85d0f8d 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -42,6 +42,9 @@ % or $departure->{train_type} eq 'FLX' % or $departure->{train_type} eq 'NJ') { % $linetype = 'ext'; +% } +% elsif ( $departure->{train_line} and $departure->{train_line} =~ m{^S\d} ) { +% $linetype = 'sbahn'; % }
% if ($departure->{train_type} and $departure->{train_no}) { -- cgit v1.2.3