summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 13:54:19 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 13:54:19 +0100
commitfe0dbf7588a2e129e09fbfb518cc5e5c191330a2 (patch)
treeb4be945bf3c1a6943af080cdc8bc32d83547a1a0
parent8bbe698952003a7c9b85d58afc7f67492b49fb72 (diff)
wagon order: indicate closed wagons
-rw-r--r--cpanfile2
-rw-r--r--templates/_checked_in.html.ep7
2 files changed, 7 insertions, 2 deletions
diff --git a/cpanfile b/cpanfile
index bd79c50..f81887c 100644
--- a/cpanfile
+++ b/cpanfile
@@ -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';
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 2d4c52a..7155208 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -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;
% }