From daae20b50090d3b516b4f32c1e1e6de3d452dec3 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 7 Mar 2024 18:14:22 +0100 Subject: wagon order preview: add separators between wagon groups --- templates/_train_details.html.ep | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/_train_details.html.ep') 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 @@ % } %= $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 -- cgit v1.2.3