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 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates/departures.html.ep') 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) %>) % } -- cgit v1.2.3