diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_checked_in.html.ep | 12 | ||||
-rw-r--r-- | templates/landingpage.html.ep | 1 |
2 files changed, 5 insertions, 8 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;"> diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 61d136e..3e7d761 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -13,7 +13,6 @@ % } <div class="row"> <div class="col s12 statuscol"> - % my $status = get_user_status(); % if ($status->{checked_in}) { %= include '_checked_in', journey => $status; % } |