diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-16 20:05:14 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-16 20:05:14 +0200 |
commit | 39d0fd00cf1a5b5c83d2c9439e5fd481587ba3dd (patch) | |
tree | 9954f2969880a6f4c5a9ec55030979d4f18d86ac | |
parent | bf30ecf75881fecddf61b706c9019e5169ac2a73 (diff) |
dbris: re-enable map links to DBF
-rw-r--r-- | templates/_checked_in.html.ep | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 42f150f..b625388 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -327,7 +327,7 @@ % if (@{stash('timeline') // []}) { %= include '_timeline_link', timeline => stash('timeline'), from_checkin => 1 % } - % if ($journey->{arr_name} and not $journey->{is_dbris}) { + % if ($journey->{arr_name}) { <div class="card" style="margin-top: <%= scalar @{stash('timeline') // []} ? '1.5rem' : '3em' %>;"> <div class="card-content"> <span class="card-title">Details</span> @@ -361,7 +361,7 @@ % $url .= $journey->{train_id} =~ s{#}{%23}gr . '?hafas=' . $journey->{backend_name}; <a style="margin-right: 0;" href="<%= $url %>"><i class="material-icons left" aria-hidden="true">timeline</i> Details</a> % } - % elsif ($journey->{extra_data}{trip_id}) { + % elsif ($journey->{extra_data}{trip_id} and not $journey->{is_dbris}) { % $url .= $journey->{extra_data}{trip_id} =~ s{#}{%23}gr; <a style="margin-right: 0;" href="<%= $url %>"><i class="material-icons left" aria-hidden="true">timeline</i> Zuglauf</a> % } @@ -369,7 +369,7 @@ % } % if ($journey->{extra_data}{trip_id}) { - <a class="right" style="margin-right: 0;" href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} =~ s{#}{%23}gr %>/<%= $journey->{train_line} || 0 %>?hafas=<%= $journey->{backend_name} // 'VRN' %>&from=<%= $journey->{dep_name} %>&to=<%= $journey->{arr_name} %>"><i class="material-icons left" aria-hidden="true">map</i> Karte</a> + <a class="right" style="margin-right: 0;" href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} =~ s{#}{%23}gr %>/<%= $journey->{train_line} || 0 %>?<%= $journey->{is_hafas} ? 'hafas' : 'dbris' %>=<%= $journey->{backend_name} // 'ÖBB' %>&from=<%= $journey->{dep_name} %>&to=<%= $journey->{arr_name} %>"><i class="material-icons left" aria-hidden="true">map</i> Karte</a> % } </div> </div> |