From aec37cce68ccc00a05b63035d8e89a8898d85646 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 3 Aug 2024 21:18:14 +0200 Subject: [PATCH] public status card: only link to bahn.expert for DB journeys --- templates/_public_status_card.html.ep | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 4c3d617..ae00b0b 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -165,10 +165,13 @@
% if ($journey->{traewelling_url}) { timeline Träwelling - % } else { + % } elsif ($journey->{backend_id} <= 1) { % my $url = 'https://bahn.expert/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; timeline Zuglauf % } + % else { +   + % } % if ($journey->{extra_data}{trip_id}) { map Karte % }