diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-07-18 00:05:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-07-18 00:05:24 +0200 |
commit | bf02f1b05042be56ed4ba5a23f4790909ae3329b (patch) | |
tree | 6b11249183ea396cc250222dac2ed611c874e684 /templates | |
parent | 5b06acde2a2345524962c7e64d4696a0ce917883 (diff) |
show warning if realtime data is missing
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index f854279..00b4406 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -132,6 +132,12 @@ % for my $link (@{$departure->{links}}) { <a class="smallbutton" href="<%= $link->[1] %>"><i class="material-icons" aria-hidden="true">warning</i> <%= $link->[0] %></a> % } +% if ($departure->{missing_realtime}) { + <span class="disabledbutton" title="Nur Fahrplandaten verfügbar. Ob die Zugfahrt tatsächlich stattfindet, ist noch nicht bekannt."><i class="material-icons" aria-hidden="true">gps_off</i> Echtzeitdaten fehlen</span> +% } +% elsif ($departure->{partially_missing_realtime}) { + <span class="disabledbutton"><i class="material-icons" aria-hidden="true">gps_off</i> Echtzeitdaten unvollständig</span> +% } </div> % if (my $u = $departure->{utilization}) { |