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};
|
2019-11-25 20:18:57 +00:00
|
|
|
% my $td_class = '';
|
|
|
|
% my $link_class = 'action-checkin';
|
|
|
|
% if ($train->is_cancelled) {
|
|
|
|
% $td_class = 'cancelled';
|
|
|
|
% $link_class = 'action-cancelled-from';
|
|
|
|
% }
|
2019-05-19 08:32:57 +00:00
|
|
|
<tr>
|
2019-11-25 20:18:57 +00:00
|
|
|
<td class="<%= $td_class %>">
|
2019-05-19 08:32:57 +00:00
|
|
|
% if ($checkin_from) {
|
2019-11-25 20:18:57 +00:00
|
|
|
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
|
2019-05-19 08:32:57 +00:00
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $train->line
|
|
|
|
% }
|
|
|
|
</td>
|
2019-11-25 20:18:57 +00:00
|
|
|
<td class="<%= $td_class %>">
|
2019-05-19 08:32:57 +00:00
|
|
|
% if ($checkin_from) {
|
2019-11-25 20:18:57 +00:00
|
|
|
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
|
2019-05-19 08:32:57 +00:00
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $via
|
|
|
|
% }
|
|
|
|
</td>
|
2019-11-25 20:18:57 +00:00
|
|
|
<td>
|
|
|
|
% if ($train->departure_is_cancelled) {
|
|
|
|
%= $train->sched_departure->strftime('%H:%M')
|
|
|
|
⊖
|
2019-05-19 08:32:57 +00:00
|
|
|
% }
|
2019-11-25 20:18:57 +00:00
|
|
|
% else {
|
|
|
|
%= $train->departure->strftime('%H:%M')
|
|
|
|
% if ($train->departure_delay) {
|
|
|
|
%= sprintf('(%+d)', $train->departure_delay)
|
|
|
|
% }
|
|
|
|
<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};
|
2019-07-07 06:10:05 +00:00
|
|
|
% my $td_class = '';
|
|
|
|
% my $link_class = 'action-checkin';
|
|
|
|
% if ($train->departure_is_cancelled) {
|
|
|
|
% $td_class = 'cancelled';
|
|
|
|
% $link_class = 'action-cancelled-from';
|
|
|
|
% }
|
2019-05-19 08:32:57 +00:00
|
|
|
<tr>
|
2019-07-07 06:10:05 +00:00
|
|
|
<td class="<%= $td_class %>">
|
2019-05-19 08:32:57 +00:00
|
|
|
% if ($checkin_from) {
|
2019-07-14 19:29:52 +00:00
|
|
|
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $train->line %></a>
|
2019-05-19 08:32:57 +00:00
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $train->line
|
|
|
|
% }
|
|
|
|
</td>
|
2019-07-07 06:10:05 +00:00
|
|
|
<td class="<%= $td_class %>">
|
2019-05-19 08:32:57 +00:00
|
|
|
% if ($checkin_from) {
|
2019-07-14 19:29:52 +00:00
|
|
|
<a class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>"><%= $via %></a>
|
2019-05-19 08:32:57 +00:00
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $via
|
|
|
|
% }
|
|
|
|
</td>
|
2019-11-25 20:18:57 +00:00
|
|
|
<td>
|
|
|
|
% if ($train->departure_is_cancelled) {
|
|
|
|
%= $train->sched_departure->strftime('%H:%M')
|
|
|
|
(fällt aus)
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
%= $train->departure->strftime('%H:%M')
|
|
|
|
% if ($train->departure_delay) {
|
|
|
|
%= sprintf('(%+d)', $train->departure_delay)
|
|
|
|
% }
|
2019-05-19 08:32:57 +00:00
|
|
|
% }
|
2019-11-25 20:18:57 +00:00
|
|
|
</td><td>
|
|
|
|
% if (not $train->departure_is_cancelled) {
|
|
|
|
Gleis <%= $train->platform || '?' %>
|
|
|
|
% }
|
|
|
|
</td>
|
2019-05-19 08:32:57 +00:00
|
|
|
</tr>
|
|
|
|
% }
|
|
|
|
</tbody></table></div>
|