summaryrefslogtreecommitdiff
path: root/templates/_checked_out.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_out.html.ep
parent7960114f71720f2c2fa86e74be4b80812edaef36 (diff)
allow checkin from connections view
Diffstat (limited to 'templates/_checked_out.html.ep')
-rw-r--r--templates/_checked_out.html.ep5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/_checked_out.html.ep b/templates/_checked_out.html.ep
index 9c7ff48..18b613b 100644
--- a/templates/_checked_out.html.ep
+++ b/templates/_checked_out.html.ep
@@ -3,6 +3,11 @@
<span class="card-title">Ausgecheckt</span>
<p>Aus <%= $journey->{train_type} %> <%= $journey->{train_no} %>
bis <a href="/s/<%= $journey->{arr_ds100} %>"><%= $journey->{arr_name} %></a></p>
+ % if (now()->epoch - $journey->{timestamp}->epoch < (30*60)) {
+ % if (my @connections = get_connecting_trains()) {
+ %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100};
+ % }
+ % }
</div>
<div class="card-action">
<a class="action-undo" data-id="<%= $journey->{journey_id} %>">