From 1c68e7dcd6c5569569f4c320cfbd4625ec137994 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Sep 2020 09:52:03 +0200 Subject: detail view: more prominent display of arrival, departure, and platform --- templates/_train_details.html.ep | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'templates/_train_details.html.ep') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 231f64e..5feb8a6 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -40,19 +40,8 @@ -->
-
-% if ($departure->{arrival_is_cancelled} and $departure->{departure_is_cancelled}) { - Fahrt fällt aus -% } -% else { -% if ($departure->{scheduled_platform} and $departure->{platform} -% and $departure->{scheduled_platform} ne $departure->{platform}) { - Gleis <%= $departure->{platform} %> -% } -% elsif ($departure->{scheduled_platform} or $departure->{platform}) { - Gleis <%= $departure->{platform} // $departure->{scheduled_platform} %> -% } -% } +
+
% if ($departure->{is_cancelled} and $departure->{sched_arrival}) { An: ––:––
Plan: <%= $departure->{sched_arrival} %> @@ -70,6 +59,24 @@ % } % }
+
+
+
+% if ($departure->{arrival_is_cancelled} and $departure->{departure_is_cancelled}) { + Fahrt fällt aus +% } +% else { +% if ($departure->{scheduled_platform} and $departure->{platform} +% and $departure->{scheduled_platform} ne $departure->{platform}) { + Gleis <%= $departure->{platform} %> +% } +% elsif ($departure->{scheduled_platform} or $departure->{platform}) { + Gleis <%= $departure->{platform} // $departure->{scheduled_platform} %> +% } +% } +
+
+
% if ($departure->{is_cancelled} and $departure->{sched_departure}) { Ab: ––:––
Plan: <%= $departure->{sched_departure} %> @@ -87,8 +94,8 @@ % } % }
-
-
+
+
% if ($departure->{wr_link} or ($icetype and $icetype->[1] and $departure->{train_type} ne 'Bus')) {
% if ($departure->{wr_link}) { -- cgit v1.2.3