% if ($self->stash('refresh_interval')) {
% }
% if (my $error = stash 'error') {
Received an error from the backend service:
% }
% for my $departure (@{$raw}) {
% my $linetype = q{};
% given ($departure->type) {
% when ($_ =~ m{enbahn$}) { $linetype = 'tram' }
% when ('S-Bahn') { $linetype = 'sbahn' }
% when ([qw[NE Niederflurbus SB Bus]]) { $linetype = 'bus' }
% when ('U-Bahn') { $linetype = 'ubahn' }
% }
-
%= $departure->line
% if ($departure->lineref) {
%= $departure->lineref->route
% }
%= $departure->destination
% if ($departure->delay) {
(+<%= $departure->delay %>)
% }
% if ($departure->is_cancelled) {
FĂ„LLT AUS
% }
% else {
<%= $departure->countdown %> min
% }
%= $departure->time
% }