From 9697279aeb1fe202274c2e0c30c5f12e0565a8c8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 8 Jan 2020 19:01:19 +0100 Subject: add links to complete route and map for checked-in trains --- templates/_checked_in.html.ep | 11 +++++++++++ templates/_public_status_card.html.ep | 16 +++++++++++++--- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index fdf0ab8..b220000 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -260,6 +260,17 @@ % } +
+
+ % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; + timeline Zuglauf +
+
+ % if ($journey->{extra_data}{trip_id}) { + map Karte + % } +
+
% if ($journey->{arr_name}) {
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 6b2a5c3..751a14b 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -8,12 +8,11 @@

„<%= $journey->{comment} %>“

% }

- % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; % if ($journey->{train_line}) { -

+
<%= $journey->{train_type} %> <%= $journey->{train_line} %> <%= $journey->{train_no} %>
% } % else { - +
<%= $journey->{train_type} %> <%= $journey->{train_no} %>
% }
+
+
+ % my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000'; + timeline Zuglauf +
+
+ % if ($journey->{extra_data}{trip_id}) { + map Karte + % } +
+
% } % else {
-- cgit v1.2.3