From 5686110134e0fa5afbef038f2f46db7983c4bc4b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 9 Jun 2019 13:31:35 +0200 Subject: Correctly color ECE and TGV trains in detail view --- lib/DBInfoscreen/Controller/Stationboard.pm | 2 ++ templates/_train_details.html.ep | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 015a000..862ba12 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1088,11 +1088,13 @@ sub handle_request { elsif ($departure->{train_type} eq 'IC' or $departure->{train_type} eq 'ICE' or $departure->{train_type} eq 'EC' + or $departure->{train_type} eq 'ECE' or $departure->{train_type} eq 'EN' ) { $linetype = 'fern'; } elsif ($departure->{train_type} eq 'THA' + or $departure->{train_type} eq 'TGV' or $departure->{train_type} eq 'FLX' or $departure->{train_type} eq 'NJ' ) { diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index c61e1bf..5bff90f 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -73,7 +73,7 @@ % } % } -% if ($linetype eq 'fern' and $departure->{wr_link}) { +% if (($linetype eq 'fern' or $linetype eq 'ext') and $departure->{wr_link}) {
Wagenreihung
-- cgit v1.2.3