summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-25 08:51:45 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-25 08:51:45 +0200
commitcce2e02db3f1d50978ff358ab92f611555d9d238 (patch)
treea34da864b3fca56f315ff43b2aaa698dceb3975f
parentaf105440e5f3582758a4ab3dc5fe21f690e83542 (diff)
infoscreen template: use stable Status/EFA API
-rw-r--r--templates/infoscreen.html.ep38
1 files changed, 19 insertions, 19 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 851b1d1..c20589d 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -48,10 +48,10 @@
% }
% elsif ($departure->can('route_pre') and $departure->can('route_post')) {
% if ($departure->route_pre) {
-%= ($departure->route_pre)[0]->{stop}
+%= ($departure->route_pre)[0]->name
% }
% if ($departure->route_post) {
-% ($departure->route_post)[-1]->{stop}
+% ($departure->route_post)[-1]->name
% }
% }
</span> <!-- train-route -->
@@ -61,46 +61,46 @@
<table class="scheduled">
% for my $stop ($departure->route_pre) {
<tr class="routepre"><td class="time">
-% if (not defined $stop->{arr_time}) {
- <%= $stop->{dep_time} %>
+% if (not defined $stop->arr_time) {
+ <%= $stop->dep_time %>
% }
-% elsif (not defined $stop->{dep_time}) {
- <%= $stop->{arr_time} %>
+% elsif (not defined $stop->dep_time) {
+ <%= $stop->arr_time %>
% }
-% elsif ( $stop->{arr_time} eq $stop->{dep_time} ) {
- <%= $stop->{dep_time} %>
+% elsif ( $stop->arr_time eq $stop->dep_time ) {
+ <%= $stop->dep_time %>
% }
% else {
- <%= $stop->{arr_time} %> → <%= $stop->{dep_time} %>
+ <%= $stop->arr_time %> → <%= $stop->dep_time %>
% }
</td>
- <td class="stop"><%= $stop->{stop} %></td></tr>
+ <td class="stop"><%= $stop->name %></td></tr>
% }
<tr class="routenow"><td class="time"><%= $departure->time %></td>
<td class="stop"><%= $id_name %> <%= $id_stop %></td></tr>
% for my $stop ($departure->route_post) {
<tr class="routepost"><td class="time">
-% if (not defined $stop->{arr_time}) {
- <%= $stop->{dep_time} %>
+% if (not defined $stop->arr_time) {
+ <%= $stop->dep_time %>
% }
-% elsif (not defined $stop->{dep_time}) {
- <%= $stop->{arr_time} %>
+% elsif (not defined $stop->dep_time) {
+ <%= $stop->arr_time %>
% }
-% elsif ( $stop->{arr_time} eq $stop->{dep_time} ) {
- <%= $stop->{dep_time} %>
+% elsif ( $stop->arr_time eq $stop->dep_time ) {
+ <%= $stop->dep_time %>
% }
% else {
- <%= $stop->{arr_time} %> → <%= $stop->{dep_time} %>
+ <%= $stop->arr_time %> → <%= $stop->dep_time %>
% }
</td>
- <td class="stop"><%= $stop->{stop} %></td></tr>
+ <td class="stop"><%= $stop->name %></td></tr>
% }
</table>
% }
</span> <!-- moreinfo -->
<span class="route">
% if ($departure->can('route_interesting') and $departure->route_interesting) {
-%= join(' - ', map { $_->{stop_suf} } ($departure->route_interesting));
+%= join(' - ', map { $_->name_suf } ($departure->route_interesting));
% }
% elsif ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route