From d17cb1fccc7fc58f7721840eec6e3cf8e31b1b67 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 May 2017 13:16:32 -0400 Subject: [PATCH] use table for listings --- Project-Unite/Views/Bugs/Index.cshtml | 38 ++++++++++++--------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/Project-Unite/Views/Bugs/Index.cshtml b/Project-Unite/Views/Bugs/Index.cshtml index 2c08afc..1ddc718 100644 --- a/Project-Unite/Views/Bugs/Index.cshtml +++ b/Project-Unite/Views/Bugs/Index.cshtml @@ -40,44 +40,40 @@

@category.Name

@category.Description

-
-
- Open -
-
- Urgency -
-
- Actions -
-
+ + + + + + @foreach(var bug in category.Open.OrderByDescending(x=>x.Urgency)) { -
-
+
+ @switch (bug.Urgency) { case 0: -
Minor
+ break; case 1: -
Moderate
+ break; case 2: -
Major
+ break; case 3: -
Critical
+ break; } -
+
+ } +
OpenUrgencyActions

Reported at: @bug.ReportedAt • Reported by: @Html.UserLink(bug.Reporter)

- +
MinorModerateMajorCritical Close bug report - - +
}