From 2e210c9d1b880e04848218f4a82c777526c198a1 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Wed, 18 Oct 2023 12:58:04 -0400 Subject: [PATCH] fix "delay" vs "delays" --- BinaryDad.AacpsBusAlert.Web/Views/Home/Index.cshtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BinaryDad.AacpsBusAlert.Web/Views/Home/Index.cshtml b/BinaryDad.AacpsBusAlert.Web/Views/Home/Index.cshtml index 7cb2da6..00385e9 100644 --- a/BinaryDad.AacpsBusAlert.Web/Views/Home/Index.cshtml +++ b/BinaryDad.AacpsBusAlert.Web/Views/Home/Index.cshtml @@ -3,6 +3,7 @@ ViewData["Title"] = "School Bus Checker"; var busRoutes = Model.Routes.OrderBy(r => r.BusNumber).ToList(); + var totalDelays = busRoutes.Count; var hasDelays = busRoutes.Any(); var userBusRoutes = Model.User.Routes @@ -17,7 +18,7 @@ @if (hasDelays) { -

Uh oh! We have @busRoutes.Count delays

+

Uh oh! We have @totalDelays @(totalDelays == 1 ? "delay" : "delays")

} else {