summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-06 07:56:27 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-06 07:56:27 +0100
commit5033c814275ea13d76cc0a6deb1a542578ca04c9 (patch)
tree7cc1f233cb90732f77561aefa12147adb9499c80 /templates
parent6d8511731a1b6d84d2a6b013e27569af03160550 (diff)
correctly pass date to bahn.expert4.20.2
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 3e60612..98800f2 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -133,7 +133,7 @@
<span class="disabledbutton"><i class="material-icons" aria-hidden="true">train</i> Plan: <%= $icetype->[0] %></span>
% }
% if ($departure->{train_type} and $departure->{train_no}) {
- <a class="smallbutton" href="https://bahn.expert/details/<%= $departure->{train_type} %>%20<%= $departure->{train_no} %>/<%= ($departure->{start} // DateTime->now(time_zone => 'Europe/Berlin'))->iso8601 %>?evaNumberAlongRoute=<%= $departure->{eva} %>"><img src="/static/icons/bahn-expert.svg">Details</a>
+ <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}}) {
<a class="smallbutton" href="<%= $link->[1] %>"><i class="material-icons" aria-hidden="true">warning</i> <%= $link->[0] %></a>