summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
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 = '▶';
% }