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

history: do not show delays < 1 minute

parent fc7ff5b6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -37,8 +37,8 @@
								<i class="material-icons">timer_off</i>
							% } else {
								%= $travel->{rt_arrival}->strftime('%H:%M');
								% if ($travel->{sched_arrival} != $travel->{rt_arrival}) {
									(<%= sprintf('%+d', ($travel->{rt_arrival}->epoch - $travel->{sched_arrival}->epoch) / 60) %>)
								% if ($travel->{delay_arr} and int($travel->{delay_arr} / 60)) {
									(<%= sprintf('%+d', $travel->{delay_arr} / 60) %>)
								% }
							% }
						% }
@@ -55,8 +55,8 @@
						% }
						% else {
							<%= $travel->{rt_departure}->strftime('%H:%M') %>
							% if ($travel->{sched_departure} != $travel->{rt_departure}) {
								(<%= sprintf('%+d', ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60) %>)
							% if ($travel->{delay_dep} and int($travel->{delay_dep} / 60)) {
								(<%= sprintf('%+d', $travel->{delay_dep} / 60) %>)
							% }
						% }
						<strong><%= $travel->{from_name} %></strong>