From 5af134ef1ec968597a8fb9feb44372657d178bb8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 23 Apr 2019 20:00:03 +0200 Subject: [PATCH] landingpage: Fix plural for "0 minutes" --- templates/landingpage.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index cd14f5c..26bae8d 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -36,7 +36,7 @@

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 <%= $status->{real_departure}->strftime('%H:%M') %> % if ($status->{real_departure}->epoch != $status->{sched_departure}->epoch) {