summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-27 14:59:20 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-27 14:59:20 +0100
commit51b52327caa311a851c50951a5c4b9b37ccf0ed8 (patch)
treefc7f188e9a7b5c8c0cf3c80d71478205306708ef /templates
parent4329fde714614c28e12f45892c486c0989c85886 (diff)
map: support non-DB HAFAS backends, including ÖBB
Diffstat (limited to 'templates')
-rw-r--r--templates/_map_infobox.html.ep2
-rw-r--r--templates/_train_details.html.ep4
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/_map_infobox.html.ep b/templates/_map_infobox.html.ep
index c8936ae..4f9a644 100644
--- a/templates/_map_infobox.html.ep
+++ b/templates/_map_infobox.html.ep
@@ -1,6 +1,6 @@
<div class="container" id="infobox" style="margin-top: 1ex; margin-bottom: 1ex;">
<div class="journey" id="jdata"
-data-req="<%= stash('ajax_req') %>"
+data-req="<%= stash('ajax_req') =~ s{#}{%23}gr %>"
data-route="<%= stash('ajax_route') %>"
data-poly="<%= stash('ajax_polyline') %>"
>
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index f1ddfe0..dca9405 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} %>/<%= $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') %>"><i class="material-icons" aria-hidden="true">map</i> <%= l 'Karte' %></a>
% }
% else {
- <a class="smallbutton" href="/map/<%= $departure->{trip_id} %>/<%= $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 %>"><i class="material-icons" aria-hidden="true">map</i> <%= l 'Karte' %></a>
% }
% }
% if ($departure->{wr_link}) {