2019-05-20 17:15:21 +00:00
|
|
|
<div class="hide-on-med-and-up"><table class="striped"><tbody>
|
2019-05-19 08:32:57 +00:00
|
|
|
% for my $res (@{$connections}) {
|
|
|
|
% my ($train, $via) = @{$res};
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
% if ($checkin_from) {
|
|
|
|
<a class="action-checkin" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $train->line
|
|
|
|
% }
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
% if ($checkin_from) {
|
|
|
|
<a class="action-checkin" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $via
|
|
|
|
% }
|
|
|
|
</td>
|
|
|
|
<td><%= $train->departure->strftime('%H:%M') %>
|
|
|
|
% if ($train->departure_delay) {
|
|
|
|
%= sprintf('(%+d)', $train->departure_delay)
|
|
|
|
% }
|
2019-05-25 21:04:36 +00:00
|
|
|
<br/>Gleis <%= $train->platform || '?' %></td>
|
2019-05-19 08:32:57 +00:00
|
|
|
</tr>
|
|
|
|
% }
|
|
|
|
</tbody></table></div>
|
2019-05-20 17:15:21 +00:00
|
|
|
<div class="hide-on-small-only"><table class="striped"><tbody>
|
2019-05-19 08:32:57 +00:00
|
|
|
% for my $res (@{$connections}) {
|
|
|
|
% my ($train, $via) = @{$res};
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
% if ($checkin_from) {
|
|
|
|
<a class="action-checkin" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $train->line
|
|
|
|
% }
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
% if ($checkin_from) {
|
|
|
|
<a class="action-checkin" data-station="<%= $checkin_from %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $via
|
|
|
|
% }
|
|
|
|
</td>
|
|
|
|
<td><%= $train->departure->strftime('%H:%M') %>
|
|
|
|
% if ($train->departure_delay) {
|
|
|
|
%= sprintf('(%+d)', $train->departure_delay)
|
|
|
|
% }
|
2019-05-25 21:04:36 +00:00
|
|
|
</td><td>Gleis <%= $train->platform || '?' %></td>
|
2019-05-19 08:32:57 +00:00
|
|
|
</tr>
|
|
|
|
% }
|
|
|
|
</tbody></table></div>
|