diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-24 12:15:26 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-24 12:15:26 +0200 |
commit | 501038ce110e5bc06e1144b221bbe99d45a754a0 (patch) | |
tree | 22910eb330d092be06801f54c4c636d67af95cfe /templates/_checked_in.html.ep | |
parent | b992a6dc75e92d63f4cbca758cd70d825d893c05 (diff) |
_checked_in: Do not skip last two minutes of departure countdown
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r-- | templates/_checked_in.html.ep | 8 |
1 files changed, 7 insertions, 1 deletions
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. </p> % } - % if ($journey->{arr_name}) { + % elsif ($journey->{arr_name}) { <p>Ziel ändern?</p> % } % else { |