summaryrefslogtreecommitdiff
path: root/templates/_wagons.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-05-25 12:01:16 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-05-25 12:01:16 +0200
commit7844270322c4062817b0398ad2eb07a586fd5232 (patch)
treebb312d87eaf85f8cf2bf3e5708234ec245f7abda /templates/_wagons.html.ep
parent3ebd7d5179136ed7ca652742d489fd9be2fd228f (diff)
Get wagonorder description and designation from DBRIS::Formation2.11.34
Diffstat (limited to 'templates/_wagons.html.ep')
-rw-r--r--templates/_wagons.html.ep7
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/_wagons.html.ep b/templates/_wagons.html.ep
index b4af3bc..d0d9682 100644
--- a/templates/_wagons.html.ep
+++ b/templates/_wagons.html.ep
@@ -1,7 +1,10 @@
% for my $wagongroup (@{$wagongroups // []}) {
- <%= $wagongroup->{name} %>
+ %= $wagongroup->{description} // $wagongroup->{name}
% my ($wagon_number) = ($wagongroup->{name} =~ m{ ^ ICE 0* (\d+) $ }x);
- % if ($wagon_number and my $group_name = app->ice_name->{$wagon_number}) {
+ % if ($wagongroup->{designation}) {
+ „<%= $wagongroup->{designation} %>“
+ % }
+ % elsif ($wagon_number and my $group_name = app->ice_name->{$wagon_number}) {
„<%= $group_name %>“
% }
als <b><%= $wagongroup->{type} // $journey->{type} %> <%= $wagongroup->{no} %></b>