2018-09-02 19:41:33 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col s12">
|
|
|
|
|
% my $status = $self->get_user_status;
|
|
|
|
|
% if ($status->{checked_in}) {
|
|
|
|
|
<div class="card grey darken-4">
|
|
|
|
|
<div class="card-content white-text">
|
|
|
|
|
<span class="card-title">Aktuell eingecheckt</span>
|
|
|
|
|
<p>In <%= $status->{train_type} %> <%= $status->{train_no} %>
|
|
|
|
|
ab <%= $status->{station_name} %></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-action">
|
2018-10-05 14:33:59 +00:00
|
|
|
|
<a class="action-checkout" data-station="<%= $ds100 %>">
|
|
|
|
|
Hier auschecken
|
|
|
|
|
</a>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
% }
|
2018-11-02 21:29:12 +00:00
|
|
|
|
% elsif ($status->{timestamp_delta} < 600) {
|
|
|
|
|
<div class="card grey darken-4">
|
|
|
|
|
<div class="card-content white-text">
|
|
|
|
|
<span class="card-title">Ausgecheckt</span>
|
|
|
|
|
<p>Aus <%= $status->{train_type} %> <%= $status->{train_no} %>
|
|
|
|
|
bis <%= $status->{station_name} %></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-action">
|
|
|
|
|
<a class="action-undo">
|
|
|
|
|
<i class="material-icons">undo</i> Rückgängig?
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
% }
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row">
|
2019-03-08 17:02:18 +00:00
|
|
|
|
<div class="col s12">
|
2019-03-09 11:17:59 +00:00
|
|
|
|
%= $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.
|
|
|
|
|
% }
|
|
|
|
|
<br/>
|
2019-03-08 17:02:18 +00:00
|
|
|
|
<table class="striped">
|
|
|
|
|
<thead>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
<tr>
|
2019-03-08 17:02:18 +00:00
|
|
|
|
<th>Zug</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
<th>Abfahrt</th>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</tr>
|
2019-03-08 17:02:18 +00:00
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
% for my $result (@{$results}) {
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
|
|
|
|
|
<%= $result->line %>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
|
|
|
|
|
<%= $result->destination %>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
<td><%= $result->departure->strftime('%H:%M') %>
|
|
|
|
|
% if ($result->departure_delay) {
|
|
|
|
|
(+<%= $result->departure_delay %>)
|
|
|
|
|
% }
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
% }
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|