From 8daf885acefcce8cfe27c9a848f77b814d83df7b Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 9 Sep 2023 10:06:31 +0200 Subject: indicate whether current journey has realtime data --- templates/_checked_in.html.ep | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'templates/_checked_in.html.ep') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index e5e0baf..f3ecda4 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -2,7 +2,7 @@
- + % if (not $journey->{arr_name}) { Ziel wählen % } @@ -180,9 +180,12 @@ Bitte wähle ein neues Reiseziel.

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

    + % if (not $journey->{extra_data}{rt}) { +
  • gps_off Keine Echtzeitdaten vorhanden + % } % for my $message (reverse @{$journey->{messages} // []}) { % if ($journey->{sched_departure}->epoch - $message->[0]->epoch < 1800) {
  • warning <%= $message->[0]->strftime('%H:%M') %>: <%= $message->[1] %>
  • -- cgit v1.2.3