summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-07-25 18:10:18 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-07-25 18:10:18 +0200
commit9fed4e2897aed6de7d28024c9586e5488b74e30c (patch)
treeb529e9340f288770143d5d584b3d42ed7fb7b433 /templates
parentf12d8515e95f4ecee0f3b8586f64b8fd997a4bd9 (diff)
train details: do not show bahn.expert link for non-DB backends4.29.0
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index f560950..c0248d9 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -155,7 +155,7 @@
<a class="smallbutton" href="/_wr/<%= $departure->{train_no} %>/<%= $departure->{wr_link} %>?e=<%= $departure->{wr_direction} // '' %>"><i class="material-icons" aria-hidden="true">train</i> <%= $departure->{wr_text} || 'Wagen' %>
</a>
% }
-% if ($departure->{train_type} and $departure->{train_no}) {
+% if ($departure->{train_type} and $departure->{train_no} and (not param('hafas') or param('hafas') eq 'DB')) {
<a class="smallbutton" href="https://bahn.expert/details/<%= $departure->{train_type} %>%20<%= $departure->{train_no} %>/<%= ($departure->{date} // DateTime->now(time_zone => 'Europe/Berlin'))->iso8601 %>?evaNumberAlongRoute=<%= $departure->{eva} %>"><img src="/static/icons/bahn-expert.svg">Details</a>
% }
% for my $link (@{$departure->{links}}) {