% my $status = $self->get_user_status; % if ($status->{checked_in}) {
Aktuell eingecheckt

In <%= $status->{train_type} %> <%= $status->{train_no} %> ab <%= $status->{station_name} %>

% } % elsif ($status->{timestamp_delta} < 600) {
Ausgecheckt

Aus <%= $status->{train_type} %> <%= $status->{train_no} %> bis <%= $status->{station_name} %>

% }
%= $station % if (@{$results}) { – Zug auswählen zum Einchecken. % } % else { – Keine Abfahrten gefunden. Ein Checkin ist frühestens 10 Minuten vor und maximal 180 Minuten nach Abfahrt möglich. % }
% for my $result (@{$results}) { % my $class = ""; % if ($result->departure_is_cancelled) { % $class = "cancelled"; % } % }
Zug Abfahrt
<%= $result->line %> <%= $result->destination %> <%= $result->departure->strftime('%H:%M') %> % if ($result->departure_delay) { (+<%= $result->departure_delay %>) % }