diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-29 19:10:40 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-04-29 19:10:40 +0200 |
commit | f0d831ebbb2d45b10b64f2456643d81b9af1ae06 (patch) | |
tree | 7cf433367290c107e408af82c689705675df8b59 /templates/_wagon.html.ep | |
parent | ee546af265f3571e2d2fc179b42cbe887e7eca14 (diff) |
replace DBWagenreihung group_index hack with new group accessor
Diffstat (limited to 'templates/_wagon.html.ep')
-rw-r--r-- | templates/_wagon.html.ep | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/_wagon.html.ep b/templates/_wagon.html.ep index c19087c..59a2ca1 100644 --- a/templates/_wagon.html.ep +++ b/templates/_wagon.html.ep @@ -86,7 +86,7 @@ </span> % } % } -% if ($multi and defined $wagon->group_index and (not defined $prev_gi or $wagon->group_index != $prev_gi)) { +% if ($multi and $first) { <br/> <span class="groupno"> % if (scalar $wr->train_nos > 1) { @@ -96,8 +96,8 @@ → <%= $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> + % if ($multi and ($wr->groups)[$wagon->group_index]->desc_short) { + <span class="grouptype"><%= ($wr->groups)[$wagon->group_index]->desc_short %></span> % } % } </div> |