From 1594ba93277825a02d1b989df2db34ae98a54429 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 26 Jul 2022 15:36:22 +0200 Subject: _checked_out: move get_connecting_trains call to controller --- templates/_checked_out.html.ep | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/_checked_out.html.ep b/templates/_checked_out.html.ep index ca9373d..1d8b0e5 100644 --- a/templates/_checked_out.html.ep +++ b/templates/_checked_out.html.ep @@ -3,12 +3,10 @@ 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()) { - Verbindungen -

Zug auswählen zum Einchecken mit Zielwahl.

- %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100}; - % } + % if (my @connections = @{stash('connections') // []}) { + Verbindungen +

Zug auswählen zum Einchecken mit Zielwahl.

+ %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100}; % }
-- cgit v1.2.3