From ba55ef70c1151f8f2e143e0df38c0bfb59f926ce Mon Sep 17 00:00:00 2001 From: Cassidy Dingenskirchen Date: Mon, 22 Jan 2024 19:56:05 +0100 Subject: [PATCH] fix #106 and fix #56 (i hope) (cherry picked from commit 5fe0b4ac921c338ae642f88f2f44804d285f4691) Signed-off-by: Birte Kristina Friesel --- templates/_checked_in.html.ep | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 1a58091..9f3cba5 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -331,13 +331,14 @@ % }
+ % my $url = 'https://bahn.expert/details/'; % if ($journey->{train_id} =~ m{[|]}) { -   + % $url = $url . '/' . $journey->{sched_departure}->epoch . '000?jid=' . $journey->{train_id}; % } % else { - % my $url = 'https://bahn.expert/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; - timeline Zuglauf + % $url = $url . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . $journey->{sched_departure}->epoch . '000?station=' . $journey->{dep_eva}; % } + Zuglauf % if ($journey->{extra_data}{trip_id}) { Karte % }