fix "delay" vs "delays"
This commit is contained in:
parent
fba57d458e
commit
2e210c9d1b
@ -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)
|
||||
{
|
||||
<h3 class="alert-heading">Uh oh! We have @busRoutes.Count delays</h3>
|
||||
<h3 class="alert-heading">Uh oh! We have @totalDelays @(totalDelays == 1 ? "delay" : "delays")</h3>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user