diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-22 17:53:32 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-08-22 17:53:32 +0200 |
commit | 83a957533177cb42a2147a86982879f10631487e (patch) | |
tree | 08b734853d15f015a9fba29523b5a28a822925fe | |
parent | ecc419e6461d231e5ae8a69f37784421c0a72990 (diff) |
templates: ds100 is not present in HAFAS stations; use eva instead2.0.3
Fixes broken checkin suggestions after arriving with a HAFAS-tracked journey
-rw-r--r-- | templates/_cancelled_departure.html.ep | 4 | ||||
-rw-r--r-- | templates/_checked_in.html.ep | 2 | ||||
-rw-r--r-- | 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 @@ <div class="card-content"> <span class="card-title">Zugausfall</span> <p>Die Abfahrt von <%= $journey->{train_type} %> <%= $journey->{train_no} %> - in <a href="/s/<%= $journey->{dep_ds100} %>"><%= $journey->{dep_name} %></a> + in <a href="/s/<%= $journey->{dep_eva} %>"><%= $journey->{dep_name} %></a> entfällt. Der Zugausfall auf der Fahrt nach <%= $journey->{arr_name} %> wurde bereits dokumentiert. </p> % if (my @connections = @{stash('connections') // []}) { <p>Alternative Reisemöglichkeiten:</p> - %= include '_connections', connections => \@connections, checkin_from => $journey->{dep_ds100}; + %= include '_connections', connections => \@connections, checkin_from => $journey->{dep_eva}; % } </div> </div> 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) { <p>Fahrt auswählen zum Einchecken mit Zielwahl.</p> % } - %= 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') // []}) { <span class="card-title" style="margin-top: 2ex;">Nahverkehr</span> 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 @@ <div class="card-content"> <span class="card-title">Ausgecheckt</span> <p>Aus <%= $journey->{train_type} %> <%= $journey->{train_no} %> - bis <a href="/s/<%= $journey->{arr_ds100} %>"><%= $journey->{arr_name} %></a></p> + bis <a href="/s/<%= $journey->{arr_eva} %>"><%= $journey->{arr_name} %></a></p> % if (my @connections = @{stash('connections') // []}) { <span class="card-title" style="margin-top: 2ex;">Verbindungen</span> <p>Zug auswählen zum Einchecken mit Zielwahl.</p> - %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_ds100}; + %= include '_connections', connections => \@connections, checkin_from => $journey->{arr_eva}; % } </div> <div class="card-action"> |