From 5a41f843f1d7f57237938712ac08cf5b94450749 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 20 Dec 2020 19:10:15 +0100 Subject: show zugbildung (if available); show scheduled wagon order for nightjets too --- templates/_train_details.html.ep | 42 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'templates/_train_details.html.ep') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index a1299ac..55daae3 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -116,7 +116,7 @@ Wagenreihung % } -% elsif ($icetype and $icetype->[2] and $linetype eq 'fern') { +% elsif ($icetype and $icetype->[2] and ($linetype eq 'fern' or $departure->{train_type} =~ m{NJ})) { Plan: <%= $icetype->[0] %> % } % elsif ($icetype and $icetype->[1] and $linetype eq 'fern') { @@ -227,5 +227,45 @@ % } +% } +% if ($details and not $departure->{arrival}) { +% if (my $s = $details->{route}{preStart}) { + Zug wird voraussichtlich aus <%= $s %> eingesetzt.

+% } +% if ($details->{cycle}{from}) { + Bildung möglicherweise aus + +% } +% } +% elsif ($details and not $departure->{departure}) { +% if (my $e = $details->{route}{postEnd}) { + Zug wird voraussichtlich in <%= $e %> abgestellt.

+% } +% if ($details->{cycle}{to}) { + Weiterfahrt möglicherweise als + +% } % } -- cgit v1.2.3