diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-09-03 22:27:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-09-03 22:27:50 +0200 |
commit | 482fa975b5f50064deb57b651019908c17b71f47 (patch) | |
tree | 118e0247f29c058f61e53db5716df1c1d848d898 /templates/_history_trains.html.ep | |
parent | ea0fe3ea3e72eb690dd5a92eb4831523be740d08 (diff) |
add public profile page and public journey details
Diffstat (limited to 'templates/_history_trains.html.ep')
-rw-r--r-- | templates/_history_trains.html.ep | 3 |
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> |