@using CarCareTracker.Helper @inject IConfigHelper config @{ var enableCsvImports = config.GetUserConfig(User).EnableCsvImports; var hideZero = config.GetUserConfig(User).HideZero; var backLogItems = Model.Where(x => x.Progress == PlanProgress.Backlog).OrderBy(x=>x.Priority); var inProgressItems = Model.Where(x => x.Progress == PlanProgress.InProgress).OrderBy(x => x.Priority); var testingItems = Model.Where(x => x.Progress == PlanProgress.Testing).OrderBy(x => x.Priority); var doneItems = Model.Where(x => x.Progress == PlanProgress.Done).OrderBy(x => x.Priority); } @model List
@($"# of Plan Records: {Model.Count()}")
@if (enableCsvImports) {
} else { }
Planned
@foreach (PlanRecord planRecord in backLogItems) { @await Html.PartialAsync("_PlanRecordItem", planRecord) }
Doing
@foreach (PlanRecord planRecord in inProgressItems) { @await Html.PartialAsync("_PlanRecordItem", planRecord) }
Testing
@foreach (PlanRecord planRecord in testingItems) { @await Html.PartialAsync("_PlanRecordItem", planRecord) }
Done
@foreach (PlanRecord planRecord in doneItems) { @await Html.PartialAsync("_PlanRecordItem", planRecord) }