From 836cd8a39a2c6c64e3cd23239a18fe1c6ea8515c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 2 Jan 2021 18:03:34 +0100 Subject: show exit direction in wagon order --- templates/_wagon.html.ep | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'templates/_wagon.html.ep') 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 @@
-% if (my $img = wagon_image($type, $wagon->type, $wagon->uic_id)) { - <%= $wagon->type %> -% } -% else { - -%= $wagon->type - +% if ($exit_dir ne 'right') { +% if (my $img = wagon_image($type, $wagon->type, $wagon->uic_id)) { + <%= $wagon->type %> +% } +% else { + +%= $wagon->type + +% } % } % my $uic_id = $wagon->uic_id; % if (length($uic_id) != 12) { @@ -67,5 +69,15 @@ % } % else { <%= substr($uic_id, 0, 2) %><%= substr($uic_id, 2, 2) %><%= substr($uic_id, 4, 2) %><%= substr($uic_id, 6, 2) %><%= substr($uic_id, 8, 3) %><%= substr($uic_id, 11) %> +% } +% if ($exit_dir eq 'right') { +% if (my $img = wagon_image($type, $wagon->type, $wagon->uic_id)) { + <%= $wagon->type %> +% } +% else { + +%= $wagon->type + +% } % }
-- cgit v1.2.3