_checked_in: Fix misleading output on arrival_countdown == 0

This commit is contained in:
Daniel Friesel 2019-04-24 07:38:45 +02:00
parent 438319e63a
commit e726d076c3

View file

@ -31,7 +31,7 @@
% if ($status->{departure_countdown} > 120) { % if ($status->{departure_countdown} > 120) {
Abfahrt in <%= int($status->{departure_countdown} / 60) %> Minuten Abfahrt in <%= int($status->{departure_countdown} / 60) %> Minuten
% } % }
% elsif ($status->{arrival_countdown}) { % elsif (defined $status->{arrival_countdown}) {
% if ($status->{arrival_countdown} > 0) { % if ($status->{arrival_countdown} > 0) {
Ankunft in <%= int($status->{arrival_countdown} / 60) %> Ankunft in <%= int($status->{arrival_countdown} / 60) %>
Minute<%= int($status->{arrival_countdown} / 60) == 1 ? '' : 'n' %> Minute<%= int($status->{arrival_countdown} / 60) == 1 ? '' : 'n' %>