From c6a0c76092f1cb4757e0d1c6b9b87fa39bdf9dca Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Jan 2020 18:13:37 +0100 Subject: checked in view: Add details panel --- templates/_checked_in.html.ep | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'templates/_checked_in.html.ep') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 62c9e78..7e9bfd0 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -163,7 +163,7 @@

% } - % if (@{$journey->{messages} // []} or @{$journey->{extra_data}{him_msg} // []} or @{$journey->{extra_data}{qos_msg} // []}) { + % if (@{$journey->{messages} // []} or @{$journey->{extra_data}{qos_msg} // []}) {

% } @@ -260,18 +257,28 @@ % } -%#
-%#
-%# % 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}) { +
+
+ Details + % if (@{$journey->{extra_data}{him_msg} // []}) { +

+

    + % for my $message (@{$journey->{extra_data}{him_msg} // []}) { +
  • info <%= $message->{header} %> <%= $message->{lead} %>
  • + % } +
+

+ % } +
+
+ % 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 + % } +
+
-- cgit v1.2.3