diff options
author | Derf Null <derf@finalrewind.org> | 2023-07-02 10:48:34 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-07-02 10:48:34 +0200 |
commit | 4dd2cc9d9ef9586583ab466040d36302eb29c127 (patch) | |
tree | 0bf5ac7ccf7d508ef5ca007f4d6a15f009d6e326 /templates/_checked_in.html.ep | |
parent | 66e8dcb9254ee172f3aa694526800e399f1808d5 (diff) |
show hours and minutes until arrival, not just minutes
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r-- | templates/_checked_in.html.ep | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 472abd2..0deab37 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -40,8 +40,7 @@ % } % elsif (defined $journey->{arrival_countdown}) { % if ($journey->{arrival_countdown} > 60) { - Ankunft in <%= sprintf('%.f', $journey->{arrival_countdown} / 60) %> - Minute<%= sprintf('%.f', $journey->{arrival_countdown} / 60) == 1 ? '' : 'n' %> + Ankunft in <%= journeys->min_to_human(int($journey->{arrival_countdown} / 60)) %> % } % elsif ($journey->{arrival_countdown} > 0) { Ankunft in weniger als einer Minute |