Commit 690b941a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

map infobox: only show platform line if the platform is known

parent 8abf8294
Loading
Loading
Loading
Loading
+18 −6
Original line number Diff line number Diff line
@@ -15,7 +15,9 @@ data-poly="<%= stash('ajax_polyline') %>"
	<div class="nextstop">
	% if ($next->{type} eq 'present' and $next->{station}{dep} and $next->{station}{arr}) {
		Aufenthalt in <strong><%= $next->{station}{name} %></strong>
		% if ($next->{station}{platform}) {
			an Gleis <strong><%= $next->{station}{platform} %></strong>
		% }
		bis <strong><%= $next->{station}{dep}->strftime('%H:%M') %></strong>
		% if ($next->{station}{dep_delay}) {
			%= sprintf('(%+d)', $next->{station}{dep_delay})
@@ -23,7 +25,9 @@ data-poly="<%= stash('ajax_polyline') %>"
	% }
	% elsif ($next->{type} eq 'present' and $next->{station}{dep}) {
		Abfahrt in <strong><%= $next->{station}{name} %></strong>
		% if ($next->{station}{platform}) {
			von Gleis <strong><%= $next->{station}{platform} %></strong>
		% }
		um <strong><%= $next->{station}{dep}->strftime('%H:%M') %></strong>
		% if ($next->{station}{dep_delay}) {
			%= sprintf('(%+d)', $next->{station}{dep_delay})
@@ -32,7 +36,9 @@ data-poly="<%= stash('ajax_polyline') %>"
	% elsif ($next->{type} eq 'present' and $next->{station}{arr}) {
		Endstation erreicht um
		<strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
		% if ($next->{station}{platform}) {
			auf Gleis <strong><%= $next->{station}{platform} %></strong>
		% }
		% if ($next->{station}{arr_delay}) {
			%= sprintf('(%+d)', $next->{station}{arr_delay})
		% }
@@ -40,8 +46,10 @@ data-poly="<%= stash('ajax_polyline') %>"
	% elsif ($next->{type} eq 'present' and $next->{station}{arr}) {
		Zug steht in
		<strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
		% if ($next->{station}{platform}) {
			auf Gleis <strong><%= $next->{station}{platform} %></strong>
		% }
	% }
	% elsif ($next->{type} eq 'next' and $next->{station}{arr}) {
		Nächster Halt:
		<strong><%= $next->{station}{name} %></strong>
@@ -49,13 +57,17 @@ data-poly="<%= stash('ajax_polyline') %>"
		% if ($next->{station}{arr_delay}) {
			%= sprintf('(%+d)', $next->{station}{arr_delay})
		% }
		% if ($next->{station}{platform}) {
			auf Gleis <strong><%= $next->{station}{platform} %></strong>
		% }
	% }
	% elsif ($next->{type} eq 'next') {
		Nächster Halt:
		<strong><%= $next->{station}{name} %></strong>
		% if ($next->{station}{platform}) {
			auf Gleis <strong><%= $next->{station}{platform} %></strong>
		% }
	% }
	</div>
% }
</div>