2018-09-02 19:41:33 +00:00
|
|
|
|
<div class="row">
|
2019-10-19 08:15:18 +00:00
|
|
|
|
<div class="col s12 center-align">
|
|
|
|
|
<b><%= $station %></b>
|
|
|
|
|
% for my $related_station (sort { $a->{name} cmp $b->{name} } @{$related_stations}) {
|
|
|
|
|
<br/><%= $related_station->{name} %>
|
|
|
|
|
% }
|
|
|
|
|
</div>
|
2019-05-20 17:15:21 +00:00
|
|
|
|
</div>
|
|
|
|
|
% my $status = $self->get_user_status;
|
|
|
|
|
% my $have_connections = 0;
|
|
|
|
|
% if ($status->{checked_in}) {
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col s12">
|
2019-05-16 14:10:53 +00:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-content">
|
2018-09-02 19:41:33 +00:00
|
|
|
|
<span class="card-title">Aktuell eingecheckt</span>
|
|
|
|
|
<p>In <%= $status->{train_type} %> <%= $status->{train_no} %>
|
2019-04-23 16:08:07 +00:00
|
|
|
|
ab <%= $status->{dep_name} %></p>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="card-action">
|
2019-12-26 21:48:50 +00:00
|
|
|
|
<a class="action-checkout" data-station="<%= $eva %>" data-force="1">
|
2018-10-05 14:33:59 +00:00
|
|
|
|
Hier auschecken
|
|
|
|
|
</a>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-05-20 17:15:21 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
% }
|
2020-02-17 20:13:07 +00:00
|
|
|
|
% elsif ($status->{cancellation} and $station eq $status->{cancellation}{dep_name}) {
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col s12">
|
|
|
|
|
%= include '_cancelled_departure', journey => $status->{cancellation};
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
% }
|
2019-05-20 17:15:21 +00:00
|
|
|
|
% elsif ($status->{timestamp_delta} < 180) {
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col s12">
|
2019-04-24 07:00:30 +00:00
|
|
|
|
%= include '_checked_out', journey => $status;
|
2019-05-20 17:15:21 +00:00
|
|
|
|
</div>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|
2019-05-20 17:15:21 +00:00
|
|
|
|
% }
|
2022-07-26 11:19:29 +00:00
|
|
|
|
% elsif (not param('train') and my @connections = @{stash('connections') // []}) {
|
2019-05-20 17:15:21 +00:00
|
|
|
|
% $have_connections = 1;
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col s12">
|
|
|
|
|
<p>Häufig genutzte Verbindungen – Zug auswählen zum Einchecken mit Zielwahl</p>
|
2019-12-26 21:48:50 +00:00
|
|
|
|
%= include '_connections', connections => \@connections, checkin_from => $eva;
|
2019-05-20 17:15:21 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
% }
|
2018-09-02 19:41:33 +00:00
|
|
|
|
<div class="row">
|
2019-03-08 17:02:18 +00:00
|
|
|
|
<div class="col s12">
|
2019-05-20 17:15:21 +00:00
|
|
|
|
<p>
|
|
|
|
|
% if ($have_connections) {
|
|
|
|
|
Alle Abfahrten –
|
|
|
|
|
% }
|
|
|
|
|
% if (@{$results}) {
|
|
|
|
|
Zug auswählen zum Einchecken.
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
Keine Abfahrten gefunden. Ein Checkin ist frühestens 30 Minuten vor
|
|
|
|
|
und maximal 120 Minuten nach Abfahrt möglich.
|
|
|
|
|
% }
|
|
|
|
|
</p>
|
2023-03-27 19:03:25 +00:00
|
|
|
|
% if ($hafas) {
|
|
|
|
|
%= include '_departures_hafas', results => $results;
|
|
|
|
|
% }
|
|
|
|
|
% else {
|
|
|
|
|
%= include '_departures_iris', results => $results;
|
|
|
|
|
% }
|
2019-03-08 17:02:18 +00:00
|
|
|
|
</div>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|
2022-09-23 17:25:17 +00:00
|
|
|
|
|
|
|
|
|
%= include '_footer', version => stash('version')
|