summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-07-27 13:54:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-07-27 13:54:20 +0200
commit2da48e05bef789e3d4f42588dbeb0ad4ca0a75d5 (patch)
tree18002f79c2fd4109bb3ba13cecd5c86374bfdf13 /templates/_checked_in.html.ep
parent52ff7565774049c6fa8189a36e40f8e01a6b2e71 (diff)
move get_connecting_trains call from _checkeed_in to controller
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep12
1 files changed, 5 insertions, 7 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index bd1ddc6..f2b6eba 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -193,14 +193,12 @@
</ul>
</p>
% }
- % 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>
- % if ($journey->{arrival_countdown} < 0) {
- <p>Zug auswählen zum Einchecken mit Zielwahl.</p>
- % }
- %= include '_connections', connections => \@connections, checkin_from => $journey->{arrival_countdown} < 0 ? $journey->{arr_ds100} : undef;
+ % if (my @connections = @{stash('connections') // []}) {
+ <span class="card-title" style="margin-top: 2ex;">Verbindungen</span>
+ % if ($journey->{arrival_countdown} < 0) {
+ <p>Zug auswählen zum Einchecken mit Zielwahl.</p>
% }
+ %= include '_connections', connections => \@connections, checkin_from => $journey->{arrival_countdown} < 0 ? $journey->{arr_ds100} : undef;
% }
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
<p style="margin-top: 2ex;">