From 4412dc8cf30d7ac812178d91ce5674c9c773902e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 15 Oct 2019 18:41:57 +0200 Subject: prepare more detailed traininfo view when offline / on slow network --- templates/app.html.ep | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates') diff --git a/templates/app.html.ep b/templates/app.html.ep index 47f2b32..0b5e52f 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -58,6 +58,11 @@ data-linetype="<%= $linetype %>" data-from="<%= $departure->{origin} // q{???} %>" data-to="<%= $departure->{destination} // q{???} %>" + data-platform="<%= $departure->{scheduled_platform} // $departure->{platform} // '' %>" + data-arrival="<%= $departure->{sched_arrival} // '' %>" + data-departure="<%= $departure->{sched_departure} // '' %>" + data-routeprev="<%= join(q{|}, @{ $departure->{route_pre} // [] } ) %>" + data-routenext="<%= join(q{|}, @{ $departure->{route_post} // [] } ) %>" % my $extraclasses = q{}; % if ($departure->{is_cancelled} or $departure->{departure_is_cancelled}) { % $extraclasses .= ' cancelled'; -- cgit v1.2.3