summaryrefslogtreecommitdiff
path: root/templates/_wagons.html.ep
blob: 8918273d0968aa192dd6859612900e64d0cd559d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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/>
	% }
% }