templates: ds100 is not present in HAFAS stations; use eva instead
Fixes broken checkin suggestions after arriving with a HAFAS-tracked journey
This commit is contained in:
parent
ecc419e646
commit
83a9575331
3 changed files with 5 additions and 5 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue