From 7fe95532c1bc559a9ad2c4b96ec37bd0e30f8598 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 May 2019 17:28:21 +0200 Subject: Use JSON for messages and route storage, prepare for extended route data --- templates/_cancelled.html.ep | 2 +- templates/_checked_in.html.ep | 6 +++--- templates/journey.html.ep | 8 ++++---- templates/landingpage.html.ep | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'templates') diff --git a/templates/_cancelled.html.ep b/templates/_cancelled.html.ep index 82e1ed7..be3e318 100644 --- a/templates/_cancelled.html.ep +++ b/templates/_cancelled.html.ep @@ -14,7 +14,7 @@ % my $is_after = 0; % for my $station (@{$journey->{route_after}}) { - <%= $station %> + <%= $station->[0] %> % } diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index a50aa3e..efe1eff 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -103,11 +103,11 @@ % my $is_after = 0; % for my $station (@{$journey->{route_after}}) { - % if ($journey->{arr_name} and $station eq $journey->{arr_name}) { - <%= $station %> + % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { + <%= $station->[0] %> % } % else { - <%= $station %> + <%= $station->[0] %> % } % } 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 { - <%= $station %> + <%= $station->[0] %> % }
% } diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 742f684..2c7496d 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -34,7 +34,7 @@ % my $is_after = 0; % for my $station (@{$status->{route_after}}) { - <%= $station %> + <%= $station->[0] %> % } -- cgit v1.2.3