diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-07-26 13:19:29 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-07-26 13:19:29 +0200 |
commit | 35338125bcf5c503ec57b857ed2d11c547eca4ab (patch) | |
tree | 821e5c30f228b3afef27e6fe595f007263e5b429 /templates | |
parent | e0b824693ff2f244c9e8e9a6ccf33d95d3ec8d2a (diff) |
departure board: move get_connecting_trains call to controller
this is in preparation for turning it into a promise
Diffstat (limited to 'templates')
-rw-r--r-- | templates/departures.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 220d951..3ef081b 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -40,7 +40,7 @@ </div> </div> % } -% elsif (not param('train') and my @connections = get_connecting_trains(eva => $eva)) { +% elsif (not param('train') and my @connections = @{stash('connections') // []}) { % $have_connections = 1; <div class="row"> <div class="col s12"> |