diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-03-08 18:02:18 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-03-08 18:02:18 +0100 |
commit | 6e961420aa78b2131d640c6fe00541f9a0b0ebd9 (patch) | |
tree | 770089dc70516130c101bd96f9479f568aff5acd /templates | |
parent | da4f532fb3f27cb7eac13ec7bad0c8c63618c3e9 (diff) |
departures: Add hint (tap == checkin)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/departures.html.ep | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep index be2c7cd..6a6f159 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -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> |