Skip to content

Commit

Permalink
wagon order: show first / second class if known
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Mar 20, 2024
1 parent bb9b31f commit 150c5a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/_checked_in.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 150c5a1

Please sign in to comment.