From f0bbf6b8ab0b9ad5c8f8503792cdc807731280ab Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 1 May 2024 12:29:30 +0200 Subject: $departure->{direction} is also used by HAFAS, move wr to wr_direction --- templates/_train_details.html.ep | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/_train_details.html.ep') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 1b7bfce..0f02483 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -68,10 +68,10 @@ % else { % my $left = ''; % my $right = ''; -% if ($departure->{direction} and $departure->{direction} eq 'l') { +% if ($departure->{wr_direction} and $departure->{wr_direction} eq 'l') { % $left = '◀ '; % } -% elsif ($departure->{direction} and $departure->{direction} eq 'r') { +% elsif ($departure->{wr_direction} and $departure->{wr_direction} eq 'r') { % $right = ' ▶'; % } % if ($departure->{scheduled_platform} and $departure->{platform} @@ -119,10 +119,10 @@ % if (my $wr = $departure->{wr}) {
% my $direction = defined $wr->direction ? $wr->direction == 100 ? '→' : '←' : q{}; -% if ($departure->{direction}) { -% $direction = $departure->{direction} eq 'l' ? '◀' : '▶'; +% if ($departure->{wr_direction}) { +% $direction = $departure->{wr_direction} eq 'l' ? '◀' : '▶'; % } - + %= $direction % if (defined $departure->{direction_num} and $departure->{direction_num} != $wr->direction) { %= join(q{ }, reverse @{$departure->{wr_preview} // []}) @@ -144,7 +144,7 @@ % } % } % if ($departure->{wr_link}) { - <%= $departure->{wr_text} || 'Wagen' %> + <%= $departure->{wr_text} || 'Wagen' %> % } % if ($departure->{train_type} and $departure->{train_no}) { -- cgit v1.2.3