From 7be3a4219ef469565ac1ae9958865f64de035901 Mon Sep 17 00:00:00 2001
From: Daniel Friesel
Date: Tue, 4 Jun 2019 21:12:36 +0200
Subject: checked in: Show QoS messages before departure and HIM messages at
all times
---
templates/_checked_in.html.ep | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
(limited to 'templates')
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index df5d260..184b11a 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -114,7 +114,7 @@
% }
- % if (@{$journey->{messages} // []} > 0 and $journey->{messages}[0]) {
+ % if (@{$journey->{messages} // []} or @{$journey->{extra_data}{him_msg} // []} or @{$journey->{extra_data}{qos_msg} // []}) {
% for my $message (reverse @{$journey->{messages} // []}) {
@@ -122,6 +122,14 @@
- warning <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %>
% }
% }
+ % if ($journey->{departure_countdown} > 0) {
+ % for my $message (@{$journey->{extra_data}{qos_msg} // []}) {
+ - info <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %>
+ % }
+ % }
+ % for my $message (@{$journey->{extra_data}{him_msg} // []}) {
+ - info <%= $message->{header} %> <%= $message->{lead} %>
+ % }
% }
--
cgit v1.2.3