summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-06-04 21:12:36 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-06-04 21:12:36 +0200
commit7be3a4219ef469565ac1ae9958865f64de035901 (patch)
tree87713d6af46bcc6010d716ef47bd3d5f090a2a9b /templates
parentd90c44ccffa8c07ef91afb750a509f69f41b43bd (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.ep10
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>
% }