From 1d589fa0b785de6116b92895ab8fcc9a2f1eaf24 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 14 Dec 2019 08:52:44 +0100 Subject: departures: show orientation bar dividing past from future --- templates/departures.html.ep | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'templates/departures.html.ep') diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 41e71f0..e71fa25 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -58,6 +58,8 @@

+ % my $orientation_bar_shown = param('train'); + % my $now_epoch = now()->epoch; % for my $result (@{$results}) { % my $td_class = ''; % my $link_class = 'action-checkin'; @@ -65,6 +67,18 @@ % $td_class = "cancelled"; % $link_class = 'action-cancelled-from'; % } + % if (not $orientation_bar_shown and $result->departure->epoch < $now_epoch) { + % $orientation_bar_shown = 1; + + + + + + % }
+ + — Anfragezeitpunkt — + +
-- cgit v1.2.3