summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-12-28 14:43:04 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-12-28 14:43:04 +0100
commite42a988a2738e4a079e9277c3bb5a3cbcbfa5395 (patch)
tree883661ce2914e034e46dd0d0f0548048ae200505 /templates
parent2fd6fa502b0a0970614da3fdadf4b15516aab8f9 (diff)
improve display of double decker wagons3.9.1
Diffstat (limited to 'templates')
-rw-r--r--templates/wagen.html.ep30
1 files changed, 16 insertions, 14 deletions
diff --git a/templates/wagen.html.ep b/templates/wagen.html.ep
index 9cf4793..b08b212 100644
--- a/templates/wagen.html.ep
+++ b/templates/wagen.html.ep
@@ -4,23 +4,25 @@
<%= $wref->{s} %>: Gleis <%= $wref->{p} %> <%= $wref->{ws} %>
</p>
% }
- % if (defined $wref->{d}) {
- <div style="text-align: center;">
- % if ($wref->{d} == 0) {
- <i class="material-icons">arrow_back</i>
- % }
- % else {
- <i class="material-icons">arrow_forward</i>
- % }
- </div>
- % }
% if ($wref->{e} eq 'u') {
<div style="float: left;"><i class="material-icons">arrow_upward</i></div>
<div style="float: right;"><i class="material-icons">arrow_upward</i></div>
% }
- <div style="clear: both;">
- <a href="<%= $wagon_file %>"><img src="<%= $wagon_file %>" style="width: 100%;"></a>
- </div>
+ % for my $wagon_file (@{$wagon_files // [] }) {
+ % if (defined $wref->{d}) {
+ <div style="text-align: center;">
+ % if ($wref->{d} == 0) {
+ <i class="material-icons">arrow_back</i>
+ % }
+ % else {
+ <i class="material-icons">arrow_forward</i>
+ % }
+ </div>
+ % }
+ <div style="clear: both;">
+ <a href="<%= $wagon_file %>"><img src="<%= $wagon_file %>" style="width: 100%;"></a>
+ </div>
+ % }
% if ($wref->{e} eq 'd') {
<div style="float: left;"><i class="material-icons">arrow_downward</i></div>
<div style="float: right;"><i class="material-icons">arrow_downward</i></div>
@@ -35,7 +37,7 @@
% }
</div>
% }
- <p class="copyright">
+ <p class="copyright" style="clear: both;">
Abbildung © Seemanngrafik d.i.p. im Auftrag der Deutschen Bahn AG,
lizensiert unter CC-BY-4.0
</p>