summaryrefslogtreecommitdiff
path: root/templates/journey.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-26 20:49:04 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-26 20:49:04 +0200
commit7b9382a9139d4e0ac45262dafd5284dfa21039eb (patch)
tree56c377dd74e3d0f3a30773b6c952f3d390d24402 /templates/journey.html.ep
parentf8542fffcd66ceba8ea0114181c942a45d3f8a0d (diff)
Also fix #160 in /journey/ stop list2.8.34
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r--templates/journey.html.ep6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 8c2177a..c13da5f 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -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 {
@@ -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/>