From 1893167d1a4403dda6ed07870fa6c83263099946 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 3 Apr 2024 14:28:01 +0200 Subject: train details: show real-time data first --- templates/_train_details.html.ep | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'templates/_train_details.html.ep') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 5c58e63..9d7241f 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -252,7 +252,7 @@ generic-stop % } % if (($stop->{rt_dep} and $stop->{dep_delay}) or (not $stop->{rt_dep} and $stop->{rt_arr} and $stop->{arr_delay})) { - "><%= ($stop->{sched_dep} // $stop->{sched_arr})->strftime('%H:%M') %> (heute <%= ($stop->{rt_dep} // $stop->{rt_arr})->strftime('%H:%M') %>) + "><%= ($stop->{rt_dep} // $stop->{rt_arr})->strftime('%H:%M') %> <%= ($stop->{sched_dep} // $stop->{sched_arr})->strftime('%H:%M') %> % } % else { "><%= ($stop->{sched_dep} // $stop->{sched_arr}) ? ($stop->{sched_dep} // $stop->{sched_arr})->strftime('%H:%M') : q{} %> @@ -269,12 +269,13 @@ % } % if (stash('station_name')) { -
  • <%= $departure->{sched_departure} // $departure->{sched_arrival} // q{} %> +
  • +%= $departure->{departure} // $departure->{arrival} // $departure->{sched_departure} // $departure->{sched_arrival} // q{} % if ($departure->{departure} and $departure->{sched_departure} and $departure->{departure} ne $departure->{sched_departure}) { - (heute <%= $departure->{departure} %>) + <%= $departure->{sched_departure} // $departure->{sched_arrival} // q{} %> % } % elsif ($departure->{arrival} and $departure->{sched_arrival} and $departure->{arrival} ne $departure->{sched_arrival}) { - (heute <%= $departure->{arrival} %>) + <%= $departure->{sched_departure} // $departure->{sched_arrival} // q{} %> % } % if ($departure->{missing_realtime} or $departure->{no_realtime_yet}) { gps_off @@ -303,7 +304,7 @@ generic-stop % } % if (($stop->{rt_arr} and $stop->{arr_delay}) or (not $stop->{rt_arr} and $stop->{rt_dep} and $stop->{dep_delay})) { - "><%= ($stop->{sched_arr} // $stop->{sched_dep})->strftime('%H:%M') %> (heute <%= ($stop->{rt_arr} // $stop->{rt_dep})->strftime('%H:%M') %>) + "><%= ($stop->{rt_arr} // $stop->{rt_dep})->strftime('%H:%M') %> <%= ($stop->{sched_arr} // $stop->{sched_dep})->strftime('%H:%M') %> % } % else { "><%= ($stop->{sched_arr} // $stop->{sched_dep}) ? ($stop->{sched_arr} // $stop->{sched_dep})->strftime('%H:%M') : q{} %> -- cgit v1.2.3