landingpage: Fix plural for "0 minutes"

This commit is contained in:
Daniel Friesel 2019-04-23 20:00:03 +02:00
parent e168d9cd39
commit 5af134ef1e

View file

@ -36,7 +36,7 @@
<p>
Abfahrt
% if ($dep_wait > 0) {
in <%= int(($status->{real_departure}->epoch - $now->epoch)/60) %> Minute<%= $dep_wait >= 2 ? 'n' : '' %>
in <%= int(($status->{real_departure}->epoch - $now->epoch)/60) %> Minute<%= $dep_wait == 1 ? '' : 'n' %>
% }
um <b><%= $status->{real_departure}->strftime('%H:%M') %></b>
% if ($status->{real_departure}->epoch != $status->{sched_departure}->epoch) {