From cc7439dd5e051904aa03e21a7a50bda106c43ae0 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Mon, 17 Feb 2020 21:13:07 +0100
Subject: handle departure cancellation after checkin

---
 templates/departures.html.ep | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'templates')

diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index ae0dd2d..706a441 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -26,6 +26,13 @@
 		</div>
 	</div>
 % }
+% elsif ($status->{cancellation} and $station eq $status->{cancellation}{dep_name}) {
+	<div class="row">
+		<div class="col s12">
+			%= include '_cancelled_departure', journey => $status->{cancellation};
+		</div>
+	</div>
+% }
 % elsif ($status->{timestamp_delta} < 180) {
 	<div class="row">
 		<div class="col s12">
-- 
cgit v1.2.3