%= l 'Fahrt' % if (stash('train_no')) { <%= stash('train_no') %> % } <%= l 'von' %> <%= stash('origin')->{name} %> <%= l 'nach' %> <%= stash('destination')->{name} %>
% if (my $next = stash('next_stop')) {
% if ($next->{type} eq 'present' and $next->{station}{dep} and $next->{station}{arr}) { <%= l 'Aufenthalt in' %> <%= $next->{station}{name} %> % if ($next->{station}{platform}) { <%= l 'an Gleis' %> <%= $next->{station}{platform} %> % } <%= l 'bis' %> <%= $next->{station}{dep}->strftime('%H:%M') %> % if ($next->{station}{dep_delay}) { %= sprintf('(%+d)', $next->{station}{dep_delay}) % } % } % elsif ($next->{type} eq 'present' and $next->{station}{dep}) { <%= l 'Abfahrt in' %> <%= $next->{station}{name} %> % if ($next->{station}{platform}) { <%= l 'von Gleis' %> <%= $next->{station}{platform} %> % } <%= l 'um' %> <%= $next->{station}{dep}->strftime('%H:%M') %> % if ($next->{station}{dep_delay}) { %= sprintf('(%+d)', $next->{station}{dep_delay}) % } % } % elsif ($next->{type} eq 'present' and $next->{station}{arr}) { %= l 'Endstation erreicht um' <%= $next->{station}{arr}->strftime('%H:%M') %> % if ($next->{station}{platform}) { <%= l 'auf Gleis' %> <%= $next->{station}{platform} %> % } % if ($next->{station}{arr_delay}) { %= sprintf('(%+d)', $next->{station}{arr_delay}) % } % } % elsif ($next->{type} eq 'present' and $next->{station}{arr}) { Zug steht in <%= $next->{station}{arr}->strftime('%H:%M') %> % if ($next->{station}{platform}) { <%= l 'auf Gleis' %> <%= $next->{station}{platform} %> % } % } % elsif ($next->{type} eq 'next' and $next->{station}{arr}) { %= l 'Nächster Halt:' <%= $next->{station}{name} %> <%= l 'um' %> <%= $next->{station}{arr}->strftime('%H:%M') %> % if ($next->{station}{arr_delay}) { %= sprintf('(%+d)', $next->{station}{arr_delay}) % } % if ($next->{station}{platform}) { <%= l 'auf Gleis' %> <%= $next->{station}{platform} %> % } % } % elsif ($next->{type} eq 'next') { %= l 'Nächster Halt:' <%= $next->{station}{name} %> % if ($next->{station}{platform}) { <%= l 'auf Gleis' %> <%= $next->{station}{platform} %> % } % }
% }