summaryrefslogtreecommitdiff
path: root/templates/_wagons.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-19 20:25:38 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-19 20:25:38 +0100
commit837e3a949ec57d03ed6fd5b5df1da8e3f64b5cbe (patch)
tree782cbbb4f780755ace2c9be34a8c6e5c5d0bd986 /templates/_wagons.html.ep
parente0a2b9aa266e0e42d9224eff3839b1875b211218 (diff)
move wagon group display to sub-template1.11.6
Diffstat (limited to 'templates/_wagons.html.ep')
-rw-r--r--templates/_wagons.html.ep16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/_wagons.html.ep b/templates/_wagons.html.ep
new file mode 100644
index 0000000..8918273
--- /dev/null
+++ b/templates/_wagons.html.ep
@@ -0,0 +1,16 @@
+% for my $wagongroup (@{$wagongroups // []}) {
+ Wagenverbund <%= $wagongroup->{name} %> von <b><%= $wagongroup->{from} %></b> nach <b><%= $wagongroup->{to} %></b> als <b><%= $journey->{type} %> <%= $wagongroup->{no} %></b><br/>
+ % for my $wagon (@{$wagongroup->{wagons}}) {
+ % if (length($wagon->{id}) == 12) {
+ <span><%= substr($wagon->{id}, 0, 2) %></span><span><%= substr($wagon->{id}, 2, 2) %></span><span><%= substr($wagon->{id}, 4, 1) %></span><span class="wagonclass"><%= substr($wagon->{id}, 5, 3) %></span><span class="wagonnum"><%= substr($wagon->{id}, 8, 3) %></span><span class="checksum"><%= substr($wagon->{id}, 11) %></span>
+ % }
+ % elsif ($wagon->{id}) {
+ „<%= $wagon->{id} %>“
+ % }
+ %= $wagon->{type}
+ % if ($wagon->{number}) {
+ – Wagen <%= $wagon->{number} %>
+ % }
+ <br/>
+ % }
+% }