% if (@{$departures}) {
% my $i = 0;
% for my $departure (@{$departures}) {
% $i++;
-
%= $departure->{train}
% if ($departure->{info} and length $departure->{info}) {
%= $departure->{info}
% }
% else {
% my $via_max = @{$departure->{via}};
% my $via_cur = 0;
% for my $stop (@{$departure->{via}}) {
% $via_cur++;
<%= $stop %><% if ($via_cur < $via_max) { %> - <% } %>
% }
% }
%= $departure->{destination}
% if ($departure->{delay}) {
(+<%= $departure->{delay} %>)
% }
%= $departure->{platform}
%= $departure->{time}
% }
% }
% else {
DB-Fakedisplay displays the next departures at a DB station, just like the big
LC display in the station itself.
% }