diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-07 18:14:22 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-07 18:14:22 +0100 |
commit | daae20b50090d3b516b4f32c1e1e6de3d452dec3 (patch) | |
tree | 4dac996c98c6a9540d047f2e0e052f01f507a031 /templates | |
parent | 420de7ee4d85463029d659527cae0351894273bd (diff) |
wagon order preview: add separators between wagon groups4.21.2
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 12aab91..932c355 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -125,10 +125,15 @@ % } <a href="/_wr/<%= $departure->{train_no} %>/<%= $departure->{wr_link} %>?e=<%= $departure->{direction} // '' %>"> %= $direction +% my $gi; % for my $wagon (@wagons) { % if (not ($wagon->is_locomotive or $wagon->is_powercar)) { +% if (defined $gi and $gi != $wagon->group_index) { + • +% } %= $wagon->number || ($wagon->type =~ m{AB} ? '½' : $wagon->type =~ m{A} ? '1.' : $wagon->type =~ m{B} ? '2.' : '?' ) % } +% $gi = $wagon->group_index; % } %= $direction </a> |