summaryrefslogtreecommitdiff
path: root/templates/_wagon.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 13:38:53 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-29 13:38:53 +0100
commit2e7a6265a666b7e61ff21f5d8a05f54cf2ecefe3 (patch)
tree53465d4475ec0b5a74ac60b7bfe68d55931ae97f /templates/_wagon.html.ep
parentee760551ec9bde73e0355cab6cb2d6a2b21a1758 (diff)
wagon order: indicate closed wagons
Diffstat (limited to 'templates/_wagon.html.ep')
-rw-r--r--templates/_wagon.html.ep6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/_wagon.html.ep b/templates/_wagon.html.ep
index 94ef56a..2f5a0df 100644
--- a/templates/_wagon.html.ep
+++ b/templates/_wagon.html.ep
@@ -6,6 +6,9 @@
% if ($wagon->is_locomotive or $wagon->is_powercar) {
% $extra_class .= ' powercar';
% }
+% if ($wagon->is_closed) {
+% $extra_class .= ' closed';
+% }
% if ($wagon->train_no ne $train_no) {
% $extra_class .= ' nondestwagon';
% }
@@ -13,6 +16,9 @@
top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%; <%= $bg %>">
% if ($wagon->is_locomotive or $wagon->is_powercar) {
% }
+% elsif ($wagon->is_closed) {
+ X
+% }
% else {
%= $wagon->number // '?'
% if ($wagon->has_accessibility) {