Commit 171e80c6 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

support arrivals with negative delay (i.e. trains which arrive too early)

parent ae695c81
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -155,12 +155,24 @@ div.displayclean li .countdown .delay {
	padding-right:7px;
}

div.displayclean li .countdown .undelay {
	font-size:1em;
	color:#006600;
	padding-right:7px;
}

div.displayclean li .countdown .delaynorm {
	font-size:0.9em;
	color:#BB3333;
	padding-right:7px;
}

div.displayclean li .countdown .undelaynorm {
	font-size:0.9em;
	color:#338833;
	padding-right:7px;
}

div.displayclean li .countdown .platform {
	font-weight: bold;
}
+11 −1
Original line number Diff line number Diff line
@@ -64,11 +64,21 @@
<span class="countdown">
% if ($departure->{delay} and not $departure->{is_cancelled}) {
% if ($show_realtime) {
<span class="delaynorm">(<%= sprintf('+%d', $departure->{delay}) %>)</span>
% if ($departure->{delay} > 0) {
<span class="delaynorm">(+<%= $departure->{delay} %>)</span>
% }
% else {
<span class="undelaynorm">(<%= $departure->{delay} %>)</span>
% }
% }
% else {
% if ($departure->{delay} > 0) {
<span class="delay">(+<%= $departure->{delay} %>)</span>
% }
% else {
<span class="undelay">(<%= $departure->{delay} %>)</span>
% }
% }
% }
<span class="platform">
%= $departure->{platform}