diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-17 13:52:56 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-05-17 13:52:56 +0200 |
commit | ec71a807b268341d6e30f2afea94b2cb808f9f42 (patch) | |
tree | 3d614635fde4a9169a38f9485578ab0aa5b76c95 /templates/app.html.ep | |
parent | 8e9b57398da0d8b1d2cf9a1c86f4a79d8130737d (diff) |
Fix anchors for DBRIS and HAFAS links4.37.3
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r-- | templates/app.html.ep | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep index fda2c23..8b52c61 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -64,7 +64,12 @@ % else { <a href="/z/<%= Mojo::Util::url_escape(($departure->{train_type} // q{}) . ' ' . ($departure->{train_no} // $departure->{train} // q{})) . '/' . Mojo::Util::url_escape($departure->{station} // $station) %>"> % } - <div class="anchor" id="<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>"></div> +% if (param('dbris') or param('hafas')) { + <div class="anchor" id="<%= $departure->{journey_id} =~ s{[ #|]}{x}gr %>"></div> +% } +% else { + <div class="anchor" id="<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>"></div> +% } <div class="line <%= $departure->{linetype} %>"> % if ($departure->{train_type} and $departure->{train_no}) { %= $departure->{train_type} |