From 960de27f0eca0fcb2549c8271a384230c4a6b06f Mon Sep 17 00:00:00 2001
From: Daniel Friesel
Date: Tue, 26 Jul 2022 14:51:57 +0200
Subject: move get_connecting_trains out of _cancelled_departure template
---
templates/_cancelled_departure.html.ep | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'templates')
diff --git a/templates/_cancelled_departure.html.ep b/templates/_cancelled_departure.html.ep
index 220c49d..1d5c76a 100644
--- a/templates/_cancelled_departure.html.ep
+++ b/templates/_cancelled_departure.html.ep
@@ -5,7 +5,7 @@
in <%= $journey->{dep_name} %>
entfällt. Der Zugausfall auf der Fahrt nach <%= $journey->{arr_name} %> wurde bereits dokumentiert.
- % if (my @connections = get_connecting_trains(eva => $journey->{dep_eva}, destination_name => $journey->{arr_name})) {
+ % if (my @connections = @{stash('connections') // []}) {
Alternative Reisemöglichkeiten:
%= include '_connections', connections => \@connections, checkin_from => $journey->{dep_ds100};
% }
--
cgit v1.2.3