summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-09-14 12:32:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-09-14 12:32:28 +0200
commit5f7933cffb2c8695380b3f537dc97c2af2d627e5 (patch)
tree0fd8c25515960d412d242c7dd1a96aadaf78ff9b
parenta9850d073e5d2380deb9c69bdfbdd29e1a6fba12 (diff)
pasengerrights: link to both journeys on connection miss1.9.2
-rw-r--r--templates/passengerrights.html.ep5
1 files 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}) {
- <br/>
+ % $detail_link = '/journey/' . $journey->{connection}{id};
+ </a><br/><a href="<%= $detail_link %>">
<%= $journey->{connection}{type} %> <%= $journey->{connection}{line} // $journey->{connection}{no} %>
→ <%= $journey->{connection}{to_name} %>
% }
@@ -47,7 +48,7 @@
%= sprintf('%+d', $journey->{delay})
% if ($journey->{connection}) {
<br/>
- %= sprintf('Mit Anschluss: %+d?', $journey->{possible_delay})
+ %= sprintf('Anschluss? → %+d', $journey->{possible_delay})
% }
% }
</td>