From 501038ce110e5bc06e1144b221bbe99d45a754a0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 24 Apr 2019 12:15:26 +0200 Subject: [PATCH] _checked_in: Do not skip last two minutes of departure countdown --- templates/_checked_in.html.ep | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 916b56f..3f47d71 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -31,6 +31,12 @@ % if ($journey->{departure_countdown} > 120) { Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten % } + % elsif ($journey->{departure_countdown} > 60) { + Abfahrt in einer Minute + % } + % elsif ($journey->{departure_countdown} > 0) { + Abfahrt in weniger als einer Minute + % } % elsif (defined $journey->{arrival_countdown}) { % if ($journey->{arrival_countdown} > 60) { Ankunft in <%= sprintf('%.f', $journey->{arrival_countdown} / 60) %> @@ -58,7 +64,7 @@ Ziel wählen.

% } - % if ($journey->{arr_name}) { + % elsif ($journey->{arr_name}) {

Ziel ändern?

% } % else {