summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-18 17:03:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-18 17:03:53 +0200
commitb2f12dad068aa34e99e800f9318fe97f0ad5597d (patch)
tree31452da60e285d109272a364236c240fbc8c71d4 /templates
parent1d864aacdc8718e22e6c941c319519c64f0d2663 (diff)
switch to HAFAS backend
Diffstat (limited to 'templates')
-rw-r--r--templates/clean.html.ep4
-rw-r--r--templates/layouts/default.html.ep4
-rw-r--r--templates/multi.html.ep4
-rw-r--r--templates/single.html.ep4
4 files changed, 8 insertions, 8 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index a05cc08..43f3c54 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -7,9 +7,9 @@
% for my $departure (@{$departures}) {
% $i++;
% my $route_str = q{};
-% my $via_max = @{$departure->{via}};
+% my $via_max = @{$departure->{via} // []};
% my $via_cur = 0;
-% for my $stop (@{$departure->{via}}) {
+% for my $stop (@{$departure->{via} // []}) {
% $via_cur++;
% $route_str .= $stop . ($via_cur < $via_max ? ' - ' : q{});
% }
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 90a017a..a169699 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -182,8 +182,8 @@ nur Züge via Bochum oder Hamm)</li>
<a href="http://finalrewind.org/projects/db-fakedisplay/">db-infoscreen</a>
v<%= stash('version') // '???' %><br/>
Backends:<br/>
-<a href="http://finalrewind.org/projects/Travel-Status-DE-DeutscheBahn/">Travel::Status::DE::DeutscheBahn</a>
-v<%= $Travel::Status::DE::DeutscheBahn::VERSION %><br/>
+<a href="http://finalrewind.org/projects/Travel-Status-DE-DeutscheBahn/">Travel::Status::DE::HAFAS</a>
+v<%= $Travel::Status::DE::HAFAS::VERSION %><br/>
<a href="http://finalrewind.org/projects/Travel-Status-DE-IRIS/">Travel::Status::DE::IRIS</a>
v<%= $Travel::Status::DE::IRIS::VERSION %><br/>
</div>
diff --git a/templates/multi.html.ep b/templates/multi.html.ep
index 6e58325..704c589 100644
--- a/templates/multi.html.ep
+++ b/templates/multi.html.ep
@@ -21,9 +21,9 @@
</div>
<div class="via">
-% my $via_max = @{$departure->{via}};
+% my $via_max = @{$departure->{via} // []};
% my $via_cur = 0;
-% for my $stop (@{$departure->{via}}) {
+% for my $stop (@{$departure->{via} // []}) {
% $via_cur++;
<span><%= $stop %><% if ($via_cur < $via_max) { %> - <% } %></span>
% }
diff --git a/templates/single.html.ep b/templates/single.html.ep
index 9c60f20..a4e370c 100644
--- a/templates/single.html.ep
+++ b/templates/single.html.ep
@@ -15,9 +15,9 @@
%= $departure->{train}
</div>
<div class="via">
-% my $via_max = @{$departure->{via}};
+% my $via_max = @{$departure->{via} // []};
% my $via_cur = 0;
-% for my $stop (@{$departure->{via}}) {
+% for my $stop (@{$departure->{via} // []}) {
% $via_cur++;
<span><%= $stop %><% if ($via_cur < $via_max) { %> - <% } %></span>
% }