Skip to content

Commit

Permalink
Also fix #160 in /journey/ stop list
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Aug 26, 2024
1 parent f8542ff commit 7b9382a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/journey.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@
% my $within = 0;
% my $at_startstop = 0;
% for my $station (@{$journey->{route}}) {
% if ($station->[0] eq $journey->{from_name}) {
% if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) {
% $within = 1; $at_startstop = 1;
% }
% elsif ($station->[0] eq $journey->{to_name}) {
% elsif (($station->[1] and $station->[1] == $journey->{to_eva}) or $station->[0] eq $journey->{to_name}) {
% $within = 0; $at_startstop = 1;
% }
% else {
Expand Down Expand Up @@ -254,7 +254,7 @@
% }
</span>
% }
% if ($station->[0] eq $journey->{from_name}) {
% if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) {
% $before = 0;
% }
<br/>
Expand Down

0 comments on commit 7b9382a

Please sign in to comment.