From c9592e3f765911a04e03c4ef5da1cdc7a93f2551 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 6 Aug 2019 20:21:57 +0200 Subject: show boarding countdown in departure overview --- templates/_checked_in.html.ep | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'templates') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 4e056da..3070ed9 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -6,6 +6,15 @@
+ % if ($journey->{boarding_countdown} > 120) { + Einfahrt in <%= sprintf('%.f', $journey->{boarding_countdown} / 60) %> Minuten
+ % } + % elsif ($journey->{boarding_countdown} > 60) { + Einfahrt in einer Minute
+ % } + % elsif ($journey->{boarding_countdown} > 0) { + Zug fährt ein
+ % } % if ($journey->{departure_countdown} > 120) { Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten % } -- cgit v1.2.3