summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-07 18:14:22 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-07 18:14:22 +0100
commitdaae20b50090d3b516b4f32c1e1e6de3d452dec3 (patch)
tree4dac996c98c6a9540d047f2e0e052f01f507a031
parent420de7ee4d85463029d659527cae0351894273bd (diff)
wagon order preview: add separators between wagon groups4.21.2
-rw-r--r--cpanfile.snapshot10
-rw-r--r--templates/_train_details.html.ep5
2 files changed, 10 insertions, 5 deletions
diff --git a/cpanfile.snapshot b/cpanfile.snapshot
index 9ecc312..60d063b 100644
--- a/cpanfile.snapshot
+++ b/cpanfile.snapshot
@@ -1832,12 +1832,12 @@ DISTRIBUTIONS
TimeDate 1.21
requirements:
ExtUtils::MakeMaker 0
- Travel-Status-DE-DBWagenreihung-0.10
- pathname: D/DE/DERF/Travel-Status-DE-DBWagenreihung-0.10.tar.gz
+ Travel-Status-DE-DBWagenreihung-0.11
+ pathname: D/DE/DERF/Travel-Status-DE-DBWagenreihung-0.11.tar.gz
provides:
- Travel::Status::DE::DBWagenreihung 0.10
- Travel::Status::DE::DBWagenreihung::Section 0.10
- Travel::Status::DE::DBWagenreihung::Wagon 0.10
+ Travel::Status::DE::DBWagenreihung 0.11
+ Travel::Status::DE::DBWagenreihung::Section 0.11
+ Travel::Status::DE::DBWagenreihung::Wagon 0.11
requirements:
Carp 0
Class::Accessor 0
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>