summaryrefslogtreecommitdiff
path: root/templates/_checked_out.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-07-26 15:36:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-07-26 15:36:22 +0200
commit1594ba93277825a02d1b989df2db34ae98a54429 (patch)
treeb62dfdb6901cc9f4fbe1229be86e069ccc2484ee /templates/_checked_out.html.ep
parent960de27f0eca0fcb2549c8271a384230c4a6b06f (diff)
_checked_out: move get_connecting_trains call to controller
Diffstat (limited to 'templates/_checked_out.html.ep')
-rw-r--r--templates/_checked_out.html.ep10
1 files changed, 4 insertions, 6 deletions
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 @@
<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()) {
- <span class="card-title" style="margin-top: 2ex;">Verbindungen</span>
- <p>Zug auswählen zum Einchecken mit Zielwahl.</p>
- %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100};
- % }
+ % if (my @connections = @{stash('connections') // []}) {
+ <span class="card-title" style="margin-top: 2ex;">Verbindungen</span>
+ <p>Zug auswählen zum Einchecken mit Zielwahl.</p>
+ %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100};
% }
</div>
<div class="card-action">