summaryrefslogtreecommitdiff
path: root/templates/wagen.html.ep
blob: 0bb88c4a2ba5857151fe95694cff4b27b37642b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<div class="container singlewagon">
	% if (not $wref->{e} and $wref->{s} and $wref->{p} and $wref->{ws}) {
		<p>
			<%= $wref->{s} %> <%= l 'Gleis' %> <%= $wref->{p} %> <%= $wref->{ws} %>
		</p>
	% }
	% if ($wref->{e} eq 'u') {
		% if ($wref->{s} and $wref->{p} and $wref->{ws}) {
			<div class="platform">
				<%= $wref->{s} %><br/><%= l 'Gleis' %> <%= $wref->{p} %> <%= $wref->{ws} %>
				<div class="sign-left"><i class="material-icons">arrow_upward</i></div>
				<div class="sign-right"><i class="material-icons">arrow_upward</i></div>
			</div>
		% }
	% }
	% elsif (defined $wref->{d} and $wref->{e} ne 'u') {
		% if ($wref->{d} == 0) {
			<div class="sign-left"><i class="material-icons">arrow_back</i></div>
			<div class="sign-right"><i class="material-icons">arrow_back</i></div>
			<div class="sign-center"><i class="material-icons">arrow_back</i></div>
		% }
		% else {
			<div class="sign-left"><i class="material-icons">arrow_forward</i></div>
			<div class="sign-right"><i class="material-icons">arrow_forward</i></div>
			<div class="sign-center"><i class="material-icons">arrow_forward</i></div>
		% }
	% }
	% for my $wagon_file (@{$wagon_files // [] }) {
		% if ($wagon_file ne $wagon_files->[0] and defined $wref->{d}) {
			% if ($wref->{d} == 0) {
				<div class="sign-left"><i class="material-icons">arrow_back</i></div>
				<div class="sign-right"><i class="material-icons">arrow_back</i></div>
				<div class="sign-center"><i class="material-icons">arrow_back</i></div>
			% }
			% else {
				<div class="sign-left"><i class="material-icons">arrow_forward</i></div>
				<div class="sign-right"><i class="material-icons">arrow_forward</i></div>
				<div class="sign-center"><i class="material-icons">arrow_forward</i></div>
			% }
		% }
		<div style="clear: both;">
			<a href="<%= $wagon_file %>"><img class="wagonfile" src="<%= $wagon_file %>"></a>
		</div>
	% }
	% if ($wref->{e} eq 'd') {
		<div class="sign-left"><i class="material-icons">arrow_downward</i></div>
		<div class="sign-right"><i class="material-icons">arrow_downward</i></div>
		% if ($wref->{s} and $wref->{p} and $wref->{ws}) {
			<div class="platform">
				<%= $wref->{s} %><br/><%= l 'Gleis' %> <%= $wref->{p} %> <%= $wref->{ws} %>
			</div>
		% }
	% }
	% elsif (defined $wref->{d} and $wref->{e} ne 'd') {
		% if ($wref->{d} == 0) {
			<div class="sign-left"><i class="material-icons">arrow_back</i></div>
			<div class="sign-right"><i class="material-icons">arrow_back</i></div>
			<div class="sign-center"><i class="material-icons">arrow_back</i></div>
		% }
		% else {
			<div class="sign-left"><i class="material-icons">arrow_forward</i></div>
			<div class="sign-right"><i class="material-icons">arrow_forward</i></div>
			<div class="sign-center"><i class="material-icons">arrow_forward</i></div>
		% }
	% }
	% if ($wagon_data->{name}) {
		<p>
			<%= $wagon_data->{name} %>
		</p>
	% }
	<p class="copyright">
		Abbildung © Seemanngrafik d.i.p. im Auftrag der Deutschen Bahn AG,
		lizensiert unter CC-BY-4.0
	</p>
</div>