summaryrefslogtreecommitdiff
path: root/templates/journey.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-07-27 16:57:44 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-07-27 16:57:44 +0200
commitf59c15b4a0f17aba552baba5d90a6be0680a615d (patch)
treee8963938643e1364d50c757f590c8edf38c27cf6 /templates/journey.html.ep
parent136c83548efceaa08e60d4dd9bd81a1bbb733032 (diff)
journey: Fix route highlighting
Polyline is still wrong
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r--templates/journey.html.ep6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 09ce159..f9c78ec 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -257,11 +257,12 @@
% my $before = 1;
% my $within = 0;
% my $at_startstop = 0;
+ % my $i = 0;
% for my $station (@{$journey->{route}}) {
- % if (($station->[1] and $station->[1] == $journey->{from_eva}) or $station->[0] eq $journey->{from_name}) {
+ % if ($i == $journey->{route_dep_index}) {
% $within = 1; $at_startstop = 1;
% }
- % elsif (($station->[1] and $station->[1] == $journey->{to_eva}) or $station->[0] eq $journey->{to_name}) {
+ % elsif ($i == $journey->{route_arr_index}) {
% $within = 0; $at_startstop = 1;
% }
% else {
@@ -298,6 +299,7 @@
% $before = 0;
% }
<br/>
+ % $i += 1;
% }
</td>
</tr>