From 5f7933cffb2c8695380b3f537dc97c2af2d627e5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 14 Sep 2019 12:32:28 +0200 Subject: pasengerrights: link to both journeys on connection miss --- templates/passengerrights.html.ep | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/passengerrights.html.ep b/templates/passengerrights.html.ep index 09c50d9..a86269a 100644 --- a/templates/passengerrights.html.ep +++ b/templates/passengerrights.html.ep @@ -34,7 +34,8 @@ <%= $journey->{type} %> <%= $journey->{line} // $journey->{no} %> → <%= $journey->{to_name} %> % if ($journey->{connection}) { -
+ % $detail_link = '/journey/' . $journey->{connection}{id}; +
<%= $journey->{connection}{type} %> <%= $journey->{connection}{line} // $journey->{connection}{no} %> → <%= $journey->{connection}{to_name} %> % } @@ -47,7 +48,7 @@ %= sprintf('%+d', $journey->{delay}) % if ($journey->{connection}) {
- %= sprintf('Mit Anschluss: %+d?', $journey->{possible_delay}) + %= sprintf('Anschluss? → %+d', $journey->{possible_delay}) % } % } -- cgit v1.2.3