summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-24 14:58:08 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-24 14:58:08 +0200
commitaa0f9fdeeacf87fcba54f4afa6c3cbf5cf80c43e (patch)
treef936495707fd84e7be92c36b899ca892d0e0632d /templates/_checked_in.html.ep
parent501038ce110e5bc06e1144b221bbe99d45a754a0 (diff)
show recent delay/qos messages in checked_in view0.16
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 3f47d71..9f2d1e2 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -57,6 +57,17 @@
<div class="determinate white" style="width: <%= sprintf('%.2f', 100 * ($journey->{journey_completion} // 0)); %>%;"></div>
</div>
</p>
+ % if (@{$journey->{messages} // []} > 0 and $journey->{messages}[0]) {
+ <p style="margin-bottom: 2ex;">
+ <ul>
+ % for my $message (reverse @{$journey->{messages} // []}) {
+ % if ($journey->{sched_departure}->epoch - $message->[0]->epoch < 1800) {
+ <li> <i class="material-icons tiny">warning</i> <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %></li>
+ % }
+ % }
+ </ul>
+ </p>
+ % }
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
<p>
Der automatische Checkout erfolgt in wenigen Minuten. Zum Umsteigen: