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

public status card: show cancellations

parent b2aa4bd5
Loading
Loading
Loading
Loading
+33 −9
Original line number Diff line number Diff line
@@ -94,7 +94,12 @@
						% if (($station->[2]{arr_countdown} // 0) > 0 and $station->[2]{arr}) {
							%= $station->[0]
							<br/>
							% if ($station->[2]{isCancelled}) {
								entfällt
							% }
							% else {
								%= $station->[2]{arr}->strftime('%H:%M')
							% }
							% if ($station->[2]{arr_delay}) {
								%= sprintf('(%+d)', $station->[2]{arr_delay} / 60)
							% }
@@ -107,10 +112,16 @@
						% if (($station->[2]{dep_countdown} // 0) > 0 and $station->[2]{dep}) {
							%= $station->[0]
							<br/>
							% if ($station->[2]{isCancelled}) {
								entfällt
							% }
							% else {
								% if ($station->[2]{arr}) {
								<%= $station->[2]{arr}->strftime('%H:%M') %> →
									%= $station->[2]{arr}->strftime('%H:%M')

								% }
								%= $station->[2]{dep}->strftime('%H:%M')
							% }
							% if ($station->[2]{dep_delay}) {
								%= sprintf('(%+d)', $station->[2]{dep_delay} / 60)
							% }
@@ -133,7 +144,12 @@
							Nächster Halt:<br/>
							%= $station->[0]
							<br/>
							% if ($station->[2]{isCancelled}) {
								entfällt
							% }
							% else {
								%= $station->[2]{arr}->strftime('%H:%M')
							% }
							% if ($station->[2]{arr_delay}) {
								%= sprintf('(%+d)', $station->[2]{arr_delay} / 60)
							% }
@@ -147,9 +163,14 @@
							Aktueller Halt:<br/>
							%= $station->[0]
							<br/>
							% if ($station->[2]{isCancelled}) {
								entfällt
							% }
							% else {
								%= $station->[2]{arr}->strftime('%H:%M')

								%= $station->[2]{dep}->strftime('%H:%M')
							% }
							% if ($station->[2]{dep_delay}) {
								%= sprintf('(%+d)', $station->[2]{dep_delay} / 60)
							% }
@@ -255,7 +276,10 @@
							%= include '_show_load_icons', station => $station
						</span>
						<span style="color: #808080;">
							% if ($before and $station->[2]{rt_dep} and $station->[2]{dep_delay}) {
							% if ($station->[2]{isCancelled}) {

							% }
							% elsif ($before and $station->[2]{rt_dep} and $station->[2]{dep_delay}) {
								%= sprintf('%+d', $station->[2]{dep_delay} / 60)
							% }
							% elsif (not $before and $station->[2]{rt_arr} and $station->[2]{arr_delay}) {