summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-20 17:59:13 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-20 17:59:13 +0100
commit150c5a137f8c34faf6936c8c64a4949224c319c9 (patch)
treeec7483a1472318a4414b81a9ddc8abdce0f4cdcd
parentbb9b31f53bd85579740d047b7e38f64655cf4b1c (diff)
wagon order: show first / second class if known2.5.21
-rw-r--r--templates/_checked_in.html.ep7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index fcf8888..2d4c52a 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -78,10 +78,15 @@
% }
<a href="https://dbf.finalrewind.org/_wr/<%= $journey->{train_no} %>/<%= $journey->{sched_departure}->strftime('%Y%m%d%H%M') %>?e=<%= $journey->{dep_direction} // q{} %>">
%= $direction
+ % my $gi;
% for my $wagon (@wagons) {
% if (not ($wagon->is_locomotive or $wagon->is_powercar)) {
- %= $wagon->number || $wagon->type
+ % 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 )
% }
+ % $gi = $wagon->group_index;
% }
%= $direction
</a>