From 83a957533177cb42a2147a86982879f10631487e Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 22 Aug 2023 17:53:32 +0200 Subject: templates: ds100 is not present in HAFAS stations; use eva instead Fixes broken checkin suggestions after arriving with a HAFAS-tracked journey --- templates/_cancelled_departure.html.ep | 4 ++-- templates/_checked_in.html.ep | 2 +- templates/_checked_out.html.ep | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/_cancelled_departure.html.ep b/templates/_cancelled_departure.html.ep index 1d5c76a..2f7f60b 100644 --- a/templates/_cancelled_departure.html.ep +++ b/templates/_cancelled_departure.html.ep @@ -2,12 +2,12 @@
Zugausfall

Die Abfahrt von <%= $journey->{train_type} %> <%= $journey->{train_no} %> - in <%= $journey->{dep_name} %> + in <%= $journey->{dep_name} %> entfällt. Der Zugausfall auf der Fahrt nach <%= $journey->{arr_name} %> wurde bereits dokumentiert.

% if (my @connections = @{stash('connections') // []}) {

Alternative Reisemöglichkeiten:

- %= include '_connections', connections => \@connections, checkin_from => $journey->{dep_ds100}; + %= include '_connections', connections => \@connections, checkin_from => $journey->{dep_eva}; % }
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 7960a80..1377db4 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -201,7 +201,7 @@ % if ($journey->{arrival_countdown} < 0) {

Fahrt auswählen zum Einchecken mit Zielwahl.

% } - %= include '_connections', connections => \@connections, checkin_from => $journey->{arrival_countdown} < 0 ? $journey->{arr_ds100} : undef; + %= include '_connections', connections => \@connections, checkin_from => $journey->{arrival_countdown} < 0 ? $journey->{arr_eva} : undef; % } % if (my @transit_fyi = @{stash('transit_fyi') // []}) { Nahverkehr diff --git a/templates/_checked_out.html.ep b/templates/_checked_out.html.ep index 1d8b0e5..064c547 100644 --- a/templates/_checked_out.html.ep +++ b/templates/_checked_out.html.ep @@ -2,11 +2,11 @@
Ausgecheckt

Aus <%= $journey->{train_type} %> <%= $journey->{train_no} %> - bis <%= $journey->{arr_name} %>

+ bis <%= $journey->{arr_name} %>

% if (my @connections = @{stash('connections') // []}) { Verbindungen

Zug auswählen zum Einchecken mit Zielwahl.

- %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100}; + %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_eva}; % }
-- cgit v1.2.3