From d9d3aac79200ca7d896d753c897e1651517ecf36 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 May 2019 10:32:57 +0200 Subject: allow checkin from connections view --- templates/_checked_out.html.ep | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'templates/_checked_out.html.ep') 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 @@ Ausgecheckt

Aus <%= $journey->{train_type} %> <%= $journey->{train_no} %> bis <%= $journey->{arr_name} %>

+ % if (now()->epoch - $journey->{timestamp}->epoch < (30*60)) { + % if (my @connections = get_connecting_trains()) { + %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100}; + % } + % }
-- cgit v1.2.3