summaryrefslogtreecommitdiff
path: root/templates/wagenreihung.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-28 08:15:56 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-28 08:15:56 +0200
commitd854bdd7c4146a223e3c94aa123da8d41e5a6c84 (patch)
tree4910a2ffc92fe2a7536cc7a3ec38af9455ca1fea /templates/wagenreihung.html.ep
parent11aa875f6e1f25a14a8a6d6e2c590873baa5662d (diff)
wagenreihung: only show trai no / direction if it has changed
Diffstat (limited to 'templates/wagenreihung.html.ep')
-rw-r--r--templates/wagenreihung.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep
index 820a484..cd4d611 100644
--- a/templates/wagenreihung.html.ep
+++ b/templates/wagenreihung.html.ep
@@ -32,7 +32,7 @@
% }
% my $gi;
% for my $wagon ($wr->wagons) {
-%= include '_wagon', wr => $wr, wagon => $wagon, prev_gi => $gi, multi => $has_multi_desc + $has_multi_dest, wref => $wref, exit_dir => stash('exit_dir');
+%= include '_wagon', wr => $wr, wagon => $wagon, prev_gi => $gi, multi => $has_multi_desc + (scalar $wr->destinations) - 1 + (scalar $wr->train_nos) - 1, wref => $wref, exit_dir => stash('exit_dir');
% $gi = $wagon->group_index;
% }
</div>