diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 16:31:22 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-27 16:31:22 +0100 |
commit | 7a5e555343a05205e379eebffa078cb6843336e8 (patch) | |
tree | 0c950e0f93743ab2af3066524a3cac7b3fd94bce | |
parent | b6a0913d8195860006d62005365ae3578d04981d (diff) |
train details: pass HAFAS backend onto map
-rw-r--r-- | templates/_train_details.html.ep | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index dca9405..07a705b 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -139,10 +139,10 @@ <div class="verbose"> % if ($departure->{trip_id}) { % if (stash('station_name')) { - <a class="smallbutton" href="/map/<%= $departure->{trip_id} =~ s{#}{%23}gr %>/<%= $departure->{train_line} // 0 %>?from=<%= stash('station_name') %>"><i class="material-icons" aria-hidden="true">map</i> <%= l 'Karte' %></a> + <a class="smallbutton" href="/map/<%= $departure->{trip_id} =~ s{#}{%23}gr %>/<%= $departure->{train_line} // 0 %>?from=<%= stash('station_name') %>&hafas=<%= param('hafas') // q{} %>"><i class="material-icons" aria-hidden="true">map</i> <%= l 'Karte' %></a> % } % else { - <a class="smallbutton" href="/map/<%= $departure->{trip_id} =~ s{#}{%23}gr %>/<%= $departure->{train_line} // 0 %>"><i class="material-icons" aria-hidden="true">map</i> <%= l 'Karte' %></a> + <a class="smallbutton" href="/map/<%= $departure->{trip_id} =~ s{#}{%23}gr %>/<%= $departure->{train_line} // 0 %>?hafas=<%= param('hafas') // q{} %>"><i class="material-icons" aria-hidden="true">map</i> <%= l 'Karte' %></a> % } % } % if ($departure->{wr_link}) { |