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} %>
|
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-04-23 16:08:07 +00:00
|
|
|
|
<a class="action-checkout" data-station="<%= $ds100 %>" 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-03-31 06:45:51 +00:00
|
|
|
|
% elsif ($status->{timestamp_delta} < 180) {
|
2019-04-24 07:00:30 +00:00
|
|
|
|
%= include '_checked_out', journey => $status;
|
2018-11-02 21:29:12 +00:00
|
|
|
|
% }
|
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 {
|
2019-04-23 16:08:07 +00:00
|
|
|
|
– Keine Abfahrten gefunden. Ein Checkin ist frühestens 30 Minuten vor
|
|
|
|
|
und maximal 120 Minuten nach Abfahrt möglich.
|
2019-03-09 11:17:59 +00:00
|
|
|
|
% }
|
|
|
|
|
<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}) {
|
2019-03-19 17:20:05 +00:00
|
|
|
|
% my $td_class = '';
|
|
|
|
|
% my $link_class = 'action-checkin';
|
2019-03-19 16:17:53 +00:00
|
|
|
|
% if ($result->departure_is_cancelled) {
|
2019-03-19 17:20:05 +00:00
|
|
|
|
% $td_class = "cancelled";
|
|
|
|
|
% $link_class = 'action-cancelled-from';
|
2019-03-19 16:17:53 +00:00
|
|
|
|
% }
|
2019-03-08 17:02:18 +00:00
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2019-03-19 17:20:05 +00:00
|
|
|
|
<a class="<%= $link_class %>" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
|
2019-03-08 17:02:18 +00:00
|
|
|
|
<%= $result->line %>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
2019-03-19 17:20:05 +00:00
|
|
|
|
<td class="<%= $td_class %>">
|
|
|
|
|
<a class="<%= $link_class %>" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
|
2019-03-08 17:02:18 +00:00
|
|
|
|
<%= $result->destination %>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
2019-03-19 17:20:05 +00:00
|
|
|
|
<td class="<%= $td_class %>"><%= $result->departure->strftime('%H:%M') %>
|
2019-03-08 17:02:18 +00:00
|
|
|
|
% if ($result->departure_delay) {
|
2019-03-20 16:50:14 +00:00
|
|
|
|
(<%= sprintf('%+d', $result->departure_delay) %>)
|
2019-03-08 17:02:18 +00:00
|
|
|
|
% }
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
% }
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2018-09-02 19:41:33 +00:00
|
|
|
|
</div>
|