From 2831fbdfb7d2263f145d5130c8ffb972eca51a9a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 20 Dec 2019 14:51:50 +0100 Subject: public status card: link to marudor.de for train details --- templates/_public_status_card.html.ep | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 4a846af..2ff7ac1 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -1,5 +1,6 @@ +
% if ($journey->{checked_in}) { -
+
<%= $name %> ist unterwegs @@ -7,11 +8,12 @@

„<%= $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} %>
+ % }
% } % else { -
+
<%= $name %> ist gerade nicht eingecheckt @@ -149,3 +151,4 @@
% } +
-- cgit v1.2.3