From d20116d8dafb4e84b5c8b5593a3fad7365024e0b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 20 Nov 2022 22:30:26 +0100 Subject: indicate entry/exit only stops in train details --- lib/DBInfoscreen/Controller/Stationboard.pm | 2 ++ sass/app.scss | 4 ++++ templates/_train_details.html.ep | 10 ++++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index c2a5f80..36f62d7 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -907,6 +907,8 @@ sub station_train_details { departure => $result->departure ? $result->departure->strftime('%H:%M') : undef, + arrival_hidden => $result->arrival_hidden, + departure_hidden => $result->departure_hidden, train_type => $result->type // '', train_line => $result->line_no, train_no => $result->train_no, diff --git a/sass/app.scss b/sass/app.scss index 5ccf25c..1f8d1ec 100644 --- a/sass/app.scss +++ b/sass/app.scss @@ -542,6 +542,10 @@ div.app { color: $info-color; } + .timehidden { + color: $fg2; + } + .undelay { color: $undelay-color; } diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 9ea3581..167068e 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -43,7 +43,7 @@
-
+
% if ($departure->{is_cancelled} and $departure->{sched_arrival}) { An: ––:––
Plan: <%= $departure->{sched_arrival} %> % } @@ -87,11 +87,17 @@ % elsif ($departure->{scheduled_platform} or $departure->{platform}) { <%= $left %>Gleis <%= $departure->{platform} // $departure->{scheduled_platform} %><%= $right %> % } +% } +% if ($departure->{arrival_hidden}) { +
Nur Einstieg +% } +% if ($departure->{departure_hidden}) { +
Nur Ausstieg % }
-
+
% if ($departure->{is_cancelled} and $departure->{sched_departure}) { Ab: ––:––
Plan: <%= $departure->{sched_departure} %> % } -- cgit v1.2.3