diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-06-04 21:12:36 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-06-04 21:12:36 +0200 |
commit | 7be3a4219ef469565ac1ae9958865f64de035901 (patch) | |
tree | 87713d6af46bcc6010d716ef47bd3d5f090a2a9b /templates | |
parent | d90c44ccffa8c07ef91afb750a509f69f41b43bd (diff) |
checked in: Show QoS messages before departure and HIM messages at all times
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_checked_in.html.ep | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ </div> </p> % } - % if (@{$journey->{messages} // []} > 0 and $journey->{messages}[0]) { + % if (@{$journey->{messages} // []} or @{$journey->{extra_data}{him_msg} // []} or @{$journey->{extra_data}{qos_msg} // []}) { <p style="margin-bottom: 2ex;"> <ul> % for my $message (reverse @{$journey->{messages} // []}) { @@ -122,6 +122,14 @@ <li> <i class="material-icons tiny">warning</i> <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %></li> % } % } + % if ($journey->{departure_countdown} > 0) { + % for my $message (@{$journey->{extra_data}{qos_msg} // []}) { + <li> <i class="material-icons tiny">info</i> <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %></li> + % } + % } + % for my $message (@{$journey->{extra_data}{him_msg} // []}) { + <li> <i class="material-icons tiny">info</i> <%= $message->{header} %> <%= $message->{lead} %></li> + % } </ul> </p> % } |