diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-15 17:32:03 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-15 17:32:03 +0200 |
commit | cc47175ef60ad5b13182c8049e6530907924e8de (patch) | |
tree | ceb3240932efe0f5b4005a77bc2a0c262a8c54d6 | |
parent | d93e4af51df9211416337811233f80cf0c994f3d (diff) |
-rw-r--r-- | templates/_train_details.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 62abc80..2c18da2 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -155,7 +155,7 @@ <a class="smallbutton" href="/carriage-formation?<%= $departure->{wr_link} %>&e=<%= $departure->{wr_direction} // '' %>"><i class="material-icons" aria-hidden="true">train</i> <%= $departure->{wr_text} || 'Wagen' %> </a> % } -% if ($departure->{trip_id} and param('dbris') eq 'bahn.de') { +% if ($departure->{trip_id} and param('dbris') and param('dbris') eq 'bahn.de') { <a class="smallbutton" href="https://bahn.expert/details/x/h/<%= Mojo::Util::url_escape( $departure->{trip_id} ) %>"><img src="/static/icons/bahn-expert.svg">Details</a> % } elsif ($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> |