summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-19 10:32:57 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-19 10:32:57 +0200
commitd9d3aac79200ca7d896d753c897e1651517ecf36 (patch)
tree87194b7a8b67b7b09bd2dc357e5239099dd60430 /templates/_checked_in.html.ep
parent7960114f71720f2c2fa86e74be4b80812edaef36 (diff)
allow checkin from connections view
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep30
1 files changed, 1 insertions, 29 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 39bc1e3..d5b14e5 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -79,35 +79,7 @@
% }
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} < (20*60)) {
% if (my @connections = get_connecting_trains()) {
- <span class="card-title" style="margin-top: 2ex;">Verbindungen</span>
- <div class="hide-on-med-and-up"><table><tbody>
- % for my $res (@connections) {
- % my ($train, $via) = @{$res};
- <tr>
- <td><%= $train->line %></td>
- <td><%= $via %></td>
- <td><%= $train->departure->strftime('%H:%M') %>
- % if ($train->departure_delay) {
- %= sprintf('(%+d)', $train->departure_delay)
- % }
- <br/>Gleis <%= $train->platform %></td>
- </tr>
- % }
- </tbody></table></div>
- <div class="hide-on-small-only"><table><tbody>
- % for my $res (@connections) {
- % my ($train, $via) = @{$res};
- <tr>
- <td><%= $train->line %></td>
- <td><%= $via %></td>
- <td><%= $train->departure->strftime('%H:%M') %>
- % if ($train->departure_delay) {
- %= sprintf('(%+d)', $train->departure_delay)
- % }
- </td><td>Gleis <%= $train->platform %></td>
- </tr>
- % }
- </tbody></table></div>
+ %= include '_connections', connections => \@connections, checkin_from => $journey->{arrival_countdown} < 0 ? $journey->{arr_ds100} : undef;
% }
% }
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {