summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-24 12:15:26 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-24 12:15:26 +0200
commit501038ce110e5bc06e1144b221bbe99d45a754a0 (patch)
tree22910eb330d092be06801f54c4c636d67af95cfe
parentb992a6dc75e92d63f4cbca758cd70d825d893c05 (diff)
_checked_in: Do not skip last two minutes of departure countdown
-rw-r--r--templates/_checked_in.html.ep8
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 {