Commit 92b0c8e4 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

fix hidelowdelay when combined with show_realtime

parent 3c4fb9b8
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1120,9 +1120,6 @@ sub handle_result {
			if ($info) {
				$info =~ s{ (?: ca [.] \s* )? [+] [ 1 2 3 4 ] $ }{}x;
			}
			if ( $delay and $delay < 5 ) {
				$delay = undef;
			}
		}
		if ($info) {
			$info =~ s{ (?: ca [.] \s* )? [+] (\d+) }{Verspätung ca $1 Min.}x;
+4 −4
Original line number Diff line number Diff line
@@ -99,18 +99,18 @@
      $departure->{is_cancelled}) ? 'delayed' : q{} %>">
%     if ($departure->{delay} and not $departure->{is_cancelled}) {
%       if ($show_realtime) {
%         if ($departure->{delay} > 0) {
%         if ($departure->{delay} > ($hide_low_delay ? 4 : 0)) {
            <span class="delaynorm" aria-hidden="true">(+<%= $departure->{delay} %>)</span>
%         }
%         else {
%         elsif ($departure->{delay} < 0) {
            <span class="undelaynorm" aria-hidden="true">(<%= $departure->{delay} %>)</span>
%         }
%       }
%       else {
%         if ($departure->{delay} > 0) {
%         if ($departure->{delay} > ($hide_low_delay ? 4 : 0)) {
            <span class="delay" aria-hidden="true">(+<%= $departure->{delay} %>)</span>
%         }
%         else {
%         elsif ($departure->{delay} < 0) {
            <span class="undelay" aria-hidden="true">(<%= $departure->{delay} %>)</span>
%         }
%       }