diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-30 18:36:15 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-30 18:36:15 +0200 |
commit | fcd78440a57a6ca380c333cd69b4243ed5fe3981 (patch) | |
tree | 21681a52802c86918d1473580d151dcc04f1435e /templates/_public_status_card.html.ep | |
parent | 99a89560321cb6981f06c5ea783b11acaec98ada (diff) |
timeline: add maps2.8.37
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r-- | templates/_public_status_card.html.ep | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index ae00b0b..6dda46d 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -14,6 +14,9 @@ <a href="/p/<%= $name %>"><%= $name %></a> ist unterwegs % } <i class="material-icons right"><%= visibility_icon($journey->{effective_visibility_str}) %></i> + % if (stash('from_timeline') and $journey->{extra_data}{trip_id}) { + <a class="right" href="https://dbf.finalrewind.org/map/<%= $journey->{extra_data}{trip_id} =~ s{#}{%23}gr %>/<%= $journey->{train_line} || 0 %>?hafas=<%= $journey->{backend_name} // 'DB' %>&from=<%= $journey->{dep_name} %>&to=<%= $journey->{arr_name} // '' %>"><i class="material-icons">map</i></a> + % } % if (not $journey->{extra_data}{rt}) { <i class="material-icons right grey-text">gps_off</i> % } |