summaryrefslogtreecommitdiff
path: root/templates
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
parent45a4089431002ee01b11880d463dd3513b0657ca (diff)
Use JSON for messages and route storage, prepare for extended route data
Diffstat (limited to 'templates')
-rw-r--r--templates/_cancelled.html.ep2
-rw-r--r--templates/_checked_in.html.ep6
-rw-r--r--templates/journey.html.ep8
-rw-r--r--templates/landingpage.html.ep2
4 files changed, 9 insertions, 9 deletions
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 @@
<tbody>
% my $is_after = 0;
% for my $station (@{$journey->{route_after}}) {
- <tr><td><a class="action-cancelled-to" data-station="<%= $station %>"><%= $station %></a></td></tr>
+ <tr><td><a class="action-cancelled-to" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr>
% }
</tbody>
</table>
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 @@
<tbody>
% my $is_after = 0;
% for my $station (@{$journey->{route_after}}) {
- % if ($journey->{arr_name} and $station eq $journey->{arr_name}) {
- <tr><td><b><a class="action-checkout" data-station="<%= $station %>"><%= $station %></a></b></td></tr>
+ % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) {
+ <tr><td><b><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></b></td></tr>
% }
% else {
- <tr><td><a class="action-checkout" data-station="<%= $station %>"><%= $station %></a></td></tr>
+ <tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr>
% }
% }
</tbody>
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/>
% }
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 @@
<tbody>
% my $is_after = 0;
% for my $station (@{$status->{route_after}}) {
- <tr><td><a class="action-cancelled-to" data-station="<%= $station %>"><%= $station %></a></td></tr>
+ <tr><td><a class="action-cancelled-to" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr>
% }
</tbody>
</table>