diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-02-16 20:56:28 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-02-16 20:56:28 +0100 |
commit | 167b01fa4264a8193ff3cbd9d3f1741f5702235a (patch) | |
tree | 6b03555ced3c757269898f8f7ebf46506aa2b06a /templates/_public_status_card.html.ep | |
parent | ef3252863e28905fe96a49a91e5a62c156c69e6e (diff) |
link traewelling profile from travelynx profile; show traewelling status
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r-- | templates/_public_status_card.html.ep | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 907427f..0f9019b 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -148,8 +148,12 @@ % } </div> <div class="card-action"> - % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; - <a style="margin-right: 0;" href="<%= $url %>"><i class="material-icons left">timeline</i> Zuglauf</a> + % if ($journey->{traewelling_url}) { + <a style="margin-right: 0;" href="<%= $journey->{traewelling_url} %>"><i class="material-icons left">timeline</i> Träwelling</a> + % } else { + % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; + <a style="margin-right: 0;" href="<%= $url %>"><i class="material-icons left">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} // '' %>"><i class="material-icons left">map</i> Karte</a> % } |