diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep
index 97c53e0f859b9eba294ec69ad83615b5cbed3f66..1dd27186b9699ea06199ef507761ad53adb7f2f7 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 d2b35ce62760c1830785b350e66e9daca597016f..dcf7ec9d7c81f92a971087a431abc0dd4e872f37 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) {