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

checked in: hide 'old realtime data' warning for checkins without realtime data

parent 63f38235
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3,9 +3,12 @@
	<div class="card">
		<div class="card-content">
			<i class="material-icons right sync-failed-marker grey-text" style="display: none;">cloud_off</i>
			% if ($journey->{last_update_delta} and $journey->{last_update_delta} > 400) {
			% if ($journey->{extra_data}{rt} and $journey->{last_update_delta} and $journey->{last_update_delta} > 400) {
				<i class="material-icons right grey-text">sync_problem</i>
			% }
			% elsif (not $journey->{extra_data}{rt}) {
				<i class="material-icons right grey-text">gps_off</i>
			% }
			% if (not $journey->{arr_name}) {
				<span class="card-title center-align"><%= L('status.select-destination') %></span>
			% }
@@ -302,7 +305,7 @@
					% }
				</p>
			% }
			% if ($journey->{last_update_delta} and $journey->{last_update_delta} > 400) {
			% if ($journey->{extra_data}{rt} and $journey->{last_update_delta} and $journey->{last_update_delta} > 400) {
				<p style="margin-top: 2em;">
					<i class="material-icons left">sync_problem</i>
					%= L('status.realtime-old.1')