From 65f35488428c82ec2b7fb8b9ccfce8d09380c216 Mon Sep 17 00:00:00 2001
From: Birte Kristina Friesel <derf@finalrewind.org>
Date: Wed, 27 Dec 2023 11:11:52 +0100
Subject: connection display: correctly annotate cancelled departures in
 preview

---
 templates/_connections.html.ep       | 2 +-
 templates/_connections_hafas.html.ep | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'templates')

diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep
index 97c53e0..1dd2718 100644
--- a/templates/_connections.html.ep
+++ b/templates/_connections.html.ep
@@ -16,7 +16,7 @@
 			data-dest="<%= $via->{name} %>">
 		% }
 		% else {
-			<li class="collection-item">
+			<li class="collection-item <%= $row_class %>">
 		% }
 			<a class="dep-time" href="#">
 				% if ($train->departure_is_cancelled) {
diff --git a/templates/_connections_hafas.html.ep b/templates/_connections_hafas.html.ep
index d2b35ce..dcf7ec9 100644
--- a/templates/_connections_hafas.html.ep
+++ b/templates/_connections_hafas.html.ep
@@ -16,7 +16,7 @@
 			data-dest="<%= $via->{name} %>">
 		% }
 		% else {
-			<li class="collection-item">
+			<li class="collection-item <%= $row_class %>">
 		% }
 			<a class="dep-time" href="#">
 				% if ($train->is_cancelled) {
-- 
cgit v1.2.3