mirror of
https://github.com/derf/travelynx
synced 2024-12-02 17:29:11 +00:00
departures: Add hint (tap == checkin)
This commit is contained in:
parent
da4f532fb3
commit
6e961420aa
1 changed files with 31 additions and 28 deletions
|
@ -32,34 +32,37 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<table class="striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Zug</th>
|
||||
<th></th>
|
||||
<th>Abfahrt</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
% for my $result (@{$results}) {
|
||||
<div class="col s12">
|
||||
Zug auswählen zum Einchecken.<br/>
|
||||
<table class="striped">
|
||||
<thead>
|
||||
<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>
|
||||
<th>Zug</th>
|
||||
<th></th>
|
||||
<th>Abfahrt</th>
|
||||
</tr>
|
||||
% }
|
||||
</tbody>
|
||||
</table>
|
||||
</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>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue