From 49bb44aff8e60c295880d370265abb644ccdf918 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 2 Aug 2024 17:37:35 +0200 Subject: train details: fix direction indicators --- templates/_train_details.html.ep | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'templates') 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 @@
% 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 = '▶'; % } -- cgit v1.2.3