summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-02 17:37:35 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-02 17:37:35 +0200
commit49bb44aff8e60c295880d370265abb644ccdf918 (patch)
tree4048b630005179625976105c54d57cb480a798ca /templates/_train_details.html.ep
parent7e2d91f9bf9ebb275178cba3d13fcdcd2869da6f (diff)
train details: fix direction indicators4.29.3
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 49edc3e..a0829b6 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -68,10 +68,10 @@
% else {
% my $left = '';
% my $right = '';
-% if ($departure->{wr_direction} and $departure->{wr_direction} eq 'l') {
+% if ($departure->{wr_direction} and $departure->{wr_direction} =~ m{l}) {
% $left = '◀ ';
% }
-% elsif ($departure->{wr_direction} and $departure->{wr_direction} eq 'r') {
+% elsif ($departure->{wr_direction} and $departure->{wr_direction} =~ m{r}) {
% $right = ' ▶';
% }
% if ($departure->{scheduled_platform} and $departure->{platform}
@@ -120,11 +120,11 @@
<div class="wagonorder-preview">
% my $left = defined $wr->direction ? $wr->direction == 100 ? q{} : '←' : q{};
% my $right = defined $wr->direction ? $wr->direction == 100 ? '→' : q{} : q{};
-% if ($departure->{wr_direction} and $departure->{wr_direction} eq 'l') {
+% if ($departure->{wr_direction} and $departure->{wr_direction} =~ m{l}) {
% $left = '◀';
% $right = q{};
% }
-% elsif ($departure->{wr_direction} and $departure->{wr_direction} eq 'r') {
+% elsif ($departure->{wr_direction} and $departure->{wr_direction} =~ m{r}) {
% $left = q{};
% $right = '▶';
% }