summaryrefslogtreecommitdiff
path: root/templates/departures.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-18 20:43:55 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-18 20:43:55 +0200
commit84afb1bc2c624ac4e7e6047a8d628e10944a70fb (patch)
treefe81c571da8616f8fb334bd69740be7476eab233 /templates/departures.html.ep
parent37a0b8f2ab7ba0371d32e44ad6fb4f09fe1b35b7 (diff)
departures: show annotation if no realtime data is available
Diffstat (limited to 'templates/departures.html.ep')
-rw-r--r--templates/departures.html.ep3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index 706a441..91b3331 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -101,6 +101,9 @@
% if ($result->departure_delay) {
(<%= sprintf('%+d', $result->departure_delay) %>)
% }
+ % elsif (not $result->has_realtime and $result->start->epoch < $now_epoch) {
+ <i class="material-icons" aria-label="Keine Echtzeitdaten vorhanden" style="font-size: 16px;">gps_off</i>
+ % }
</td>
</tr>
% }