diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-06-09 13:31:35 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-06-09 13:31:35 +0200 |
commit | 5686110134e0fa5afbef038f2f46db7983c4bc4b (patch) | |
tree | fb87347c2443086b0134b89e11a40aea7668517d | |
parent | 998d144c9aa0ff64bd2a30e9b7220e75000027cb (diff) |
Correctly color ECE and TGV trains in detail view2.3.3
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 2 | ||||
-rw-r--r-- | templates/_train_details.html.ep | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ % } % } </div> <!-- timeinfo --> -% if ($linetype eq 'fern' and $departure->{wr_link}) { +% if (($linetype eq 'fern' or $linetype eq 'ext') and $departure->{wr_link}) { <div class="verbose"> <a href="/_wr/<%= $departure->{train_no} %>/<%= $departure->{wr_link} %>">Wagenreihung</a> </div> |