From 596f6deb1adef4200ddb3df4f02e6e98525a33a6 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 May 2019 11:26:22 +0200 Subject: show wagon order even if exact positions on platform are unknown --- templates/wagenreihung.html.ep | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'templates/wagenreihung.html.ep') diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep index 0f38789..fc00968 100644 --- a/templates/wagenreihung.html.ep +++ b/templates/wagenreihung.html.ep @@ -32,11 +32,13 @@ % }
-% for my $section ($wr->sections) { -
-%= $section->{name} -
+% if (not $wr->has_bad_wagons) { +% for my $section ($wr->sections) { +
+%= $section->{name} +
+% } % } % for my $wagon ($wr->wagons) { % my $bg = ''; @@ -48,7 +50,9 @@ % }
-% if ($wr->direction == 100) { +% if ($wr->has_bad_wagons) { +% } +% elsif ($wr->direction == 100) { ↓ % } % else { -- cgit v1.2.3