wagon order: indicate closed wagons

This commit is contained in:
Birte Kristina Friesel 2024-03-29 13:54:19 +01:00
parent 8bbe698952
commit fe0dbf7588
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 7 additions and 2 deletions

View file

@ -14,7 +14,7 @@ requires 'Mojolicious::Plugin::OAuth2';
requires 'Mojo::Pg';
requires 'Text::CSV';
requires 'Text::Markdown';
requires 'Travel::Status::DE::DBWagenreihung';
requires 'Travel::Status::DE::DBWagenreihung', '0.12';
requires 'Travel::Status::DE::HAFAS', '>= 5.03';
requires 'Travel::Status::DE::IRIS';
requires 'UUID::Tiny';

View file

@ -84,7 +84,12 @@
% if (defined $gi and $gi != $wagon->group_index) {
% }
%= $wagon->number || ($wagon->type =~ m{AB} ? '½' : $wagon->type =~ m{A} ? '1.' : $wagon->type =~ m{B} ? '2.' : $wagon->type )
% if ($wagon->is_closed) {
X
% }
% else {
%= $wagon->number || ($wagon->type =~ m{AB} ? '½' : $wagon->type =~ m{A} ? '1.' : $wagon->type =~ m{B} ? '2.' : $wagon->type )
% }
% }
% $gi = $wagon->group_index;
% }