summaryrefslogtreecommitdiff
path: root/templates/_wagon.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/_wagon.html.ep
parent11aa875f6e1f25a14a8a6d6e2c590873baa5662d (diff)
wagenreihung: only show trai no / direction if it has changed
Diffstat (limited to 'templates/_wagon.html.ep')
-rw-r--r--templates/_wagon.html.ep13
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/_wagon.html.ep b/templates/_wagon.html.ep
index ce3789b..c19087c 100644
--- a/templates/_wagon.html.ep
+++ b/templates/_wagon.html.ep
@@ -87,6 +87,17 @@
% }
% }
% if ($multi and defined $wagon->group_index and (not defined $prev_gi or $wagon->group_index != $prev_gi)) {
- <br/><span class="groupno"><%= $wr->train_type %> <%= ($wr->groups)[$wagon->group_index]->train_no %> → <%= $wr->{data}{istformation}{allFahrzeuggruppe}[$wagon->group_index]{zielbetriebsstellename} %></span> <span class="grouptype"><%= ($wr->train_descriptions)[$wagon->group_index]{short} %></span>
+ <br/>
+ <span class="groupno">
+% if (scalar $wr->train_nos > 1) {
+ <%= $wr->train_type %> <%= ($wr->groups)[$wagon->group_index]->train_no %>
+% }
+% if (scalar $wr->destinations > 1) {
+ → <%= $wr->{data}{istformation}{allFahrzeuggruppe}[$wagon->group_index]{zielbetriebsstellename} %>
+% }
+ </span>
+ % if (scalar $wr->train_descriptions > 1 and ($wr->train_descriptions)[$wagon->group_index]{short}) {
+ <span class="grouptype"><%= ($wr->train_descriptions)[$wagon->group_index]{short} %></span>
+% }
% }
</div>