From 698aae7e0f8ba86ea1a3562863c65915dde36028 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 25 Dec 2020 21:55:11 +0100 Subject: also show exit direction in wagon view --- templates/_train_details.html.ep | 2 +- templates/wagen.html.ep | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 138c877..77a61ba 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -113,7 +113,7 @@ Karte % } % if ($departure->{wr_link}) { - Wagenreihung + Wagenreihung % } % elsif ($icetype and $icetype->[2] and ($linetype eq 'fern' or $departure->{train_type} =~ m{NJ})) { diff --git a/templates/wagen.html.ep b/templates/wagen.html.ep index 68cf221..9cf4793 100644 --- a/templates/wagen.html.ep +++ b/templates/wagen.html.ep @@ -6,7 +6,7 @@ % } % if (defined $wref->{d}) {
- % if ($wref->{d} == 100) { + % if ($wref->{d} == 0) { arrow_back % } % else { @@ -14,12 +14,20 @@ % }
% } -
+ % if ($wref->{e} eq 'u') { +
arrow_upward
+
arrow_upward
+ % } +
+ % if ($wref->{e} eq 'd') { +
arrow_downward
+
arrow_downward
+ % } % if (defined $wref->{d}) {
- % if ($wref->{d} == 100) { + % if ($wref->{d} == 0) { arrow_back % } % else { -- cgit v1.2.3