From b8f00bcf98d4deb947514a524bbfcf3e337b0251 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 15 Sep 2019 15:58:15 +0200 Subject: make 'missed connection' passengerrights message less confusing --- templates/passengerrights.html.ep | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/passengerrights.html.ep b/templates/passengerrights.html.ep index a86269a..6444de2 100644 --- a/templates/passengerrights.html.ep +++ b/templates/passengerrights.html.ep @@ -44,12 +44,11 @@ % if ($journey->{cancelled}) { Ausfall % } + % elsif ($journey->{connection}) { + %= sprintf('%+d, ggf. Anschluss verpasst', $journey->{delay}) + % } % else { %= sprintf('%+d', $journey->{delay}) - % if ($journey->{connection}) { -
- %= sprintf('Anschluss? → %+d', $journey->{possible_delay}) - % } % } -- cgit v1.2.3