diff options
author | Cassidy Dingenskirchen <admin@15318.de> | 2024-01-22 19:56:05 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-30 21:09:59 +0100 |
commit | ba55ef70c1151f8f2e143e0df38c0bfb59f926ce (patch) | |
tree | c4bade8b9f201d3736b3edf1ca8b0977daab7e26 /templates | |
parent | 51586e6dec5db1b3a2306551b13e48e10741673e (diff) |
fix #106 and fix #56 (i hope)
(cherry picked from commit 5fe0b4ac921c338ae642f88f2f44804d285f4691)
Signed-off-by: Birte Kristina Friesel <derf@finalrewind.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_checked_in.html.ep | 7 |
1 files 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 @@ % } </div> <div class="card-action"> + % 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'; - <a style="margin-right: 0;" href="<%= $url %>" aria-label="Zuglauf"><i class="material-icons left">timeline</i> Zuglauf</a> + % $url = $url . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . $journey->{sched_departure}->epoch . '000?station=' . $journey->{dep_eva}; % } + <a style="margin-right: 0;" href="<%= $url %>"><i class="material-icons left" aria-hidden="true">timeline</i> Zuglauf</a> % if ($journey->{extra_data}{trip_id}) { <a class="right" style="margin-right: 0;" href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} %>/<%= $journey->{train_line} || 0 %>?from=<%= $journey->{dep_name} %>&to=<%= $journey->{arr_name} %>&dark=<%= (session('theme') and session('theme') eq 'dark') ? 1 : 0 %>"><i class="material-icons left" aria-hidden="true">map</i> Karte</a> % } |