route / checkout selection: use EVA ID if available

This commit is contained in:
Birte Kristina Friesel 2023-08-15 21:56:47 +02:00
parent dfe820952f
commit 2ce2291e94
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -219,7 +219,7 @@
% elsif (not $journey->{arr_name}) {
<p>
% for my $station (@{$journey->{route_after}}) {
<a class="tablerow action-checkout" data-station="<%= $station->[0] %>">
<a class="tablerow action-checkout" data-station="<%= $station->[1] // $station->[0] %>">
<span><%= $station->[0] %></span>
<span>
% if ($station->[2]{load}{SECOND}) {
@ -357,7 +357,7 @@
% }
% for my $station (@{$journey->{route_after}}) {
% my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name});
<a class="action-checkout tablerow" style="<%= $is_dest? 'font-weight: bold;' : '' %>" data-station="<%= $station->[0] %>">
<a class="action-checkout tablerow" style="<%= $is_dest? 'font-weight: bold;' : '' %>" data-station="<%= $station->[1] // $station->[0] %>">
<span><%= $station->[0] %></span>
<span>
% if ($station->[2]{load}{SECOND}) {