From 731eb7eb990f366872a2774dc4119051b8285ad0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 21 Nov 2022 20:02:18 +0100 Subject: indicate hidden departures in station board --- templates/departures.html.ep | 8 +++++++- templates/legend.html.ep | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 35b5cfd..25e752a 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -97,7 +97,13 @@ <%= $result->destination %> - <%= $result->departure->strftime('%H:%M') %> + + % if ($result->departure_hidden) { + (<%= $result->departure->strftime('%H:%M') %>) + % } + % else { + %= $result->departure->strftime('%H:%M') + % } % if ($result->departure_delay) { (<%= sprintf('%+d', $result->departure_delay) %>) % } diff --git a/templates/legend.html.ep b/templates/legend.html.ep index 3b4e7d0..4fcd3bc 100644 --- a/templates/legend.html.ep +++ b/templates/legend.html.ep @@ -11,7 +11,7 @@ (HH:MM) - Route: Ein Ausstieg ist an dieser Station möglicherweise nicht vorgesehen. + Ein Einstieg (Abfahrtstafel) bzw. Ausstieg (Route) ist an dieser Station möglicherweise nicht vorgesehen. -- cgit v1.2.3