From 5b06acde2a2345524962c7e64d4696a0ce917883 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 17 Jul 2021 23:32:50 +0200 Subject: train details: annotate possibly bogus (schedule-only) times --- templates/_train_details.html.ep | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'templates') 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} %> % } % else { - "><%= $stop->{sched_dep} ? $stop->{sched_dep}->strftime('%H:%M') : q{} %> <%= $stop->{name} %> + "><%= $stop->{sched_dep} ? $stop->{sched_dep}->strftime('%H:%M') : q{} %> +% if ($stop->{rt_bogus}) { + gps_off +% } + <%= $stop->{name} %> % } % } @@ -237,7 +241,11 @@ "><%= $stop->{sched_arr}->strftime('%H:%M') %> (heute <%= $stop->{rt_arr}->strftime('%H:%M') %>) <%= $stop->{name} %> % } % else { - "><%= $stop->{sched_arr} ? $stop->{sched_arr}->strftime('%H:%M') : q{} %> <%= $stop->{name} %> + "><%= $stop->{sched_arr} ? $stop->{sched_arr}->strftime('%H:%M') : q{} %> +% if ($stop->{rt_bogus}) { + gps_off +% } + <%= $stop->{name} %> % } % } -- cgit v1.2.3