summaryrefslogtreecommitdiff
path: root/templates/_history_trains.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-03 22:27:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-03 22:27:50 +0200
commit482fa975b5f50064deb57b651019908c17b71f47 (patch)
tree118e0247f29c058f61e53db5716df1c1d848d898 /templates/_history_trains.html.ep
parentea0fe3ea3e72eb690dd5a92eb4831523be740d08 (diff)
add public profile page and public journey details
Diffstat (limited to 'templates/_history_trains.html.ep')
-rw-r--r--templates/_history_trains.html.ep3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/_history_trains.html.ep b/templates/_history_trains.html.ep
index d422165..74dfe9e 100644
--- a/templates/_history_trains.html.ep
+++ b/templates/_history_trains.html.ep
@@ -12,6 +12,9 @@
<tbody>
% for my $travel (@{$journeys}) {
% my $detail_link = '/journey/' . $travel->{id};
+ % if (my $prefix = stash('link_prefix')) {
+ % $detail_link = $prefix . $travel->{id};
+ % }
<tr>
<td><%= $travel->{sched_departure}->strftime($date_format) %></td>
<td><a href="<%= $detail_link %>"><%= $travel->{type} %> <%= $travel->{line} // $travel->{no} %></a></td>