From 482fa975b5f50064deb57b651019908c17b71f47 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 3 Sep 2020 22:27:50 +0200 Subject: add public profile page and public journey details --- templates/_history_trains.html.ep | 3 +++ 1 file changed, 3 insertions(+) (limited to 'templates/_history_trains.html.ep') 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 @@ % for my $travel (@{$journeys}) { % my $detail_link = '/journey/' . $travel->{id}; + % if (my $prefix = stash('link_prefix')) { + % $detail_link = $prefix . $travel->{id}; + % } <%= $travel->{sched_departure}->strftime($date_format) %> <%= $travel->{type} %> <%= $travel->{line} // $travel->{no} %> -- cgit v1.2.3