Unverified Commit 83a95753 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

templates: ds100 is not present in HAFAS stations; use eva instead

Fixes broken checkin suggestions after arriving with a HAFAS-tracked journey
parent ecc419e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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>
+1 −1
Original line number Diff line number Diff line
@@ -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 −2
Original line number Diff line number Diff line
@@ -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">