diff options
-rw-r--r-- | cpanfile.snapshot | 10 | ||||
-rw-r--r-- | templates/_train_details.html.ep | 5 |
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> |