summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-17 23:32:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-17 23:33:29 +0200
commit5b06acde2a2345524962c7e64d4696a0ce917883 (patch)
treef2a39964a17db1bba73d07ed54dfff798a60b80e /templates
parentb1a0853ddf4238c895d86dbfc12d67f4ea6303f2 (diff)
train details: annotate possibly bogus (schedule-only) times
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep12
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 6ce9e43..f854279 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -199,7 +199,11 @@
"><%= $stop->{sched_dep}->strftime('%H:%M') %> (heute <%= $stop->{rt_dep}->strftime('%H:%M') %>) <%= $stop->{name} %></a>
% }
% else {
- "><%= $stop->{sched_dep} ? $stop->{sched_dep}->strftime('%H:%M') : q{} %> <%= $stop->{name} %></a>
+ "><%= $stop->{sched_dep} ? $stop->{sched_dep}->strftime('%H:%M') : q{} %>
+% if ($stop->{rt_bogus}) {
+ <i class="material-icons" aria-label="Echtzeitdaten fehlen">gps_off</i>
+% }
+ <%= $stop->{name} %></a>
% }
</li>
% }
@@ -237,7 +241,11 @@
"><%= $stop->{sched_arr}->strftime('%H:%M') %> (heute <%= $stop->{rt_arr}->strftime('%H:%M') %>) <%= $stop->{name} %></a>
% }
% else {
- "><%= $stop->{sched_arr} ? $stop->{sched_arr}->strftime('%H:%M') : q{} %> <%= $stop->{name} %></a>
+ "><%= $stop->{sched_arr} ? $stop->{sched_arr}->strftime('%H:%M') : q{} %>
+% if ($stop->{rt_bogus}) {
+ <i class="material-icons" aria-label="Echtzeitdaten fehlen">gps_off</i>
+% }
+ <%= $stop->{name} %></a>
% }
</li>
% }