summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/_wagon.html.ep26
-rw-r--r--templates/layouts/app.html.ep2
-rw-r--r--templates/layouts/legacy.html.ep2
-rw-r--r--templates/wagenreihung.html.ep4
-rw-r--r--templates/zugbildung_db.html.ep4
5 files changed, 25 insertions, 13 deletions
diff --git a/templates/_wagon.html.ep b/templates/_wagon.html.ep
index a9221bd..7a2a9a3 100644
--- a/templates/_wagon.html.ep
+++ b/templates/_wagon.html.ep
@@ -50,13 +50,15 @@
</div>
<div class="details" style="
top: <%= $wagon->{position}{start_percent} %>%; bottom: <%= 100 - $wagon->{position}{end_percent} %>%;">
-% if (my $img = wagon_image($type, $wagon->type, $wagon->uic_id)) {
- <a class="type" href="/w/<%= $img %>?n=<%= $wagon->number // '' %>&amp;s=<%= $wagon->section %>&amp;r=<%= $wref %>"><%= $wagon->type %></a>
-% }
-% else {
- <span class="type">
-%= $wagon->type
- </span>
+% if ($exit_dir ne 'right') {
+% if (my $img = wagon_image($type, $wagon->type, $wagon->uic_id)) {
+ <a class="type" href="/w/<%= $img %>?n=<%= $wagon->number // '' %>&amp;s=<%= $wagon->section %>&amp;r=<%= $wref %>"><%= $wagon->type %></a>
+% }
+% else {
+ <span class="type">
+%= $wagon->type
+ </span>
+% }
% }
% my $uic_id = $wagon->uic_id;
% if (length($uic_id) != 12) {
@@ -68,4 +70,14 @@
% else {
<span class="uicexchange"><%= substr($uic_id, 0, 2) %></span><span class="uiccountry"><%= substr($uic_id, 2, 2) %></span><span class="uic56"><%= substr($uic_id, 4, 2) %></span><span class="uic78"><%= substr($uic_id, 6, 2) %></span><span class="uicno"><%= substr($uic_id, 8, 3) %></span><span class="uiccheck"><%= substr($uic_id, 11) %></span>
% }
+% if ($exit_dir eq 'right') {
+% if (my $img = wagon_image($type, $wagon->type, $wagon->uic_id)) {
+ <a class="type" href="/w/<%= $img %>?n=<%= $wagon->number // '' %>&amp;s=<%= $wagon->section %>&amp;r=<%= $wref %>"><%= $wagon->type %></a>
+% }
+% else {
+ <span class="type">
+%= $wagon->type
+ </span>
+% }
+% }
</div>
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index ebaf1cb..83d425c 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -18,7 +18,7 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- % my $av = 'v44'; # asset version
+ % my $av = 'v45'; # asset version
% if (session('theme') and session('theme') eq 'dark' or param('dark')) {
%= stylesheet "/static/${av}/css/dark.min.css", id => 'theme'
% }
diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep
index b45ae6c..6d9c189 100644
--- a/templates/layouts/legacy.html.ep
+++ b/templates/layouts/legacy.html.ep
@@ -17,7 +17,7 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- % my $av = 'v44'; # asset version
+ % my $av = 'v45'; # asset version
%= stylesheet "/static/${av}/css/default.css"
%= stylesheet "/static/${av}/css/material-icons.css"
%= stylesheet "/static/${av}/css/jquery-ui.min.css"
diff --git a/templates/wagenreihung.html.ep b/templates/wagenreihung.html.ep
index 087c2bf..4d83d2b 100644
--- a/templates/wagenreihung.html.ep
+++ b/templates/wagenreihung.html.ep
@@ -50,7 +50,7 @@
% }
</div>
<div class="container">
- <div class="wagonorder">
+ <div class="wagonorder exit-<%= stash('exit_dir') // 'unknown'%>">
% if (not $wr->has_bad_wagons) {
% for my $section ($wr->sections) {
<div class="section" style="
@@ -60,7 +60,7 @@
% }
% }
% for my $wagon ($wr->wagons) {
-%= include '_wagon', direction => $wr->direction, wagon => $wagon, type => $wr->train_subtype // 'IC', wref => $wref;
+%= include '_wagon', direction => $wr->direction, wagon => $wagon, type => $wr->train_subtype // 'IC', wref => $wref, exit_dir => stash('exit_dir');
% }
</div>
<!-- <div>
diff --git a/templates/zugbildung_db.html.ep b/templates/zugbildung_db.html.ep
index 2928b4d..6caeb61 100644
--- a/templates/zugbildung_db.html.ep
+++ b/templates/zugbildung_db.html.ep
@@ -11,9 +11,9 @@
Vorgesehener Zugtyp: <%= $zb->{type} %>
</div>
<div class="container">
- <div class="wagonorder">
+ <div class="wagonorder exit-unknown">
% for my $wagon (@{$wagons // []}) {
-%= include '_wagon', direction => undef, wagon => $wagon, type => $zb->{type}, wref => '';
+%= include '_wagon', direction => undef, wagon => $wagon, type => $zb->{type}, wref => '', exit_dir => 'unknown';
% }
</div>
<p class="copyright">