summaryrefslogtreecommitdiff
path: root/templates/journey.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-26 17:28:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-26 17:28:21 +0200
commit7fe95532c1bc559a9ad2c4b96ec37bd0e30f8598 (patch)
treec78cb5abf2833c107ac018ac98886e619231b450 /templates/journey.html.ep
parent45a4089431002ee01b11880d463dd3513b0657ca (diff)
Use JSON for messages and route storage, prepare for extended route data
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r--templates/journey.html.ep8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index cd2b04e..f83774a 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -148,20 +148,20 @@
% my $within = 0;
% my $at_startstop = 0;
% for my $station (@{$journey->{route}}) {
- % if ($station eq $journey->{from_name}) {
+ % if ($station->[0] eq $journey->{from_name}) {
% $within = 1; $at_startstop = 1;
% }
- % elsif ($station eq $journey->{to_name}) {
+ % elsif ($station->[0] eq $journey->{to_name}) {
% $within = 0; $at_startstop = 1;
% }
% else {
% $at_startstop = 0;
% }
% if ($at_startstop or $within) {
- <%= $station %>
+ <%= $station->[0] %>
% }
% else {
- <span style="color: #666666;"><%= $station %></span>
+ <span style="color: #666666;"><%= $station->[0] %></span>
% }
<br/>
% }