diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-29 13:38:53 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-03-29 13:38:53 +0100 |
commit | 2e7a6265a666b7e61ff21f5d8a05f54cf2ecefe3 (patch) | |
tree | 53465d4475ec0b5a74ac60b7bfe68d55931ae97f /templates/_train_details.html.ep | |
parent | ee760551ec9bde73e0355cab6cb2d6a2b21a1758 (diff) |
wagon order: indicate closed wagons
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r-- | templates/_train_details.html.ep | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 24d2d55..d5325c5 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -128,7 +128,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.' : '?' ) +% 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; % } |