diff options
| author | Michael <[email protected]> | 2017-04-14 14:44:08 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-14 14:44:08 -0400 |
| commit | dc233f9db90d283f3131a0185693bc48a8aee640 (patch) | |
| tree | be9af14ee016794267116d71f5dc60658c71576d /Project-Unite/Views/Bugs | |
| parent | 52245ffb86b6d1585c4e4c82e6bf1b3c03c8846a (diff) | |
| download | project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.tar.gz project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.tar.bz2 project-unite-dc233f9db90d283f3131a0185693bc48a8aee640.zip | |
Add Bug List
Diffstat (limited to 'Project-Unite/Views/Bugs')
| -rw-r--r-- | Project-Unite/Views/Bugs/ViewCategory.cshtml | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/Project-Unite/Views/Bugs/ViewCategory.cshtml b/Project-Unite/Views/Bugs/ViewCategory.cshtml new file mode 100644 index 0000000..0584bbc --- /dev/null +++ b/Project-Unite/Views/Bugs/ViewCategory.cshtml @@ -0,0 +1,110 @@ +@model Project_Unite.Models.BugTag +@{ + ViewBag.Title = "Bugtracker"; + var tags = new Project_Unite.Models.ApplicationDbContext().BugTags; +} + +<h2>Bugtracker</h2> + +@{ + Html.RenderPartial("~/Views/Bugs/_BugBar.cshtml"); +} + +<div class="row"> + <div class="col-xs-3"> + @{ + Html.RenderPartial("~/Views/Bugs/_Sidebar.cshtml", tags); + } + </div> + + <div class="col-xs-9"> + <h3>@Model.Name</h3> + + <p>@Model.Description</p> + + <p><strong>@Model.Open.Length</strong> open, <strong>@Model.Closed.Length</strong> closed.</p> + + @*Open bugs.*@ + + <table class="table"> + <tr> + <th style="width:65%;">Open</th> + <th>Actions</th> + </tr> + @foreach(var open in Model.Open.OrderByDescending(x => x.Urgency)) + { + <tr> + <td> + @Html.ActionLink(open.Name, "ViewBug", new { id = open.Id })<br/> + <p>Opened by @Html.UserLink(open.Reporter) at @open.ReportedAt • + + @switch (open.Urgency) + { + case 0: + <strong>Minor</strong> + break; + case 1: + <strong>Moderate</strong> + break; + case 2: + <strong>Major</strong> + break; + case 3: + <strong>Critical</strong> + break; + default: + <strong>A bug occurred in the bug reporter and thus an urgency couldn't be decided.</strong> + break; + } + + </p> + </td> + <td><a href="@Url.Action("CloseBug", new { id = open.Id })" class="btn btn-default"><span class="glyphicon glyphicon-check"></span> Close Bug</a></td> + </tr> + } + </table> + <hr/> + <table class="table"> + <tr> + <th style="width:65%;">Closed</th> + <th>Actions</th> + </tr> + @foreach (var open in Model.Closed.OrderByDescending(x => x.Urgency)) + { + <tr class="disabled"> + <td> + @Html.ActionLink(open.Name, "ViewBug", new { id = open.Id })<br /> + <p> + Opened by @Html.UserLink(open.Reporter) at @open.ReportedAt • + + @switch (open.Urgency) + { + case 0: + <strong>Minor</strong> + break; + case 1: + <strong>Moderate</strong> + break; + case 2: + <strong>Major</strong> + break; + case 3: + <strong>Critical</strong> + break; + default: + <strong>A bug occurred in the bug reporter and thus an urgency couldn't be decided.</strong> + break; + } + • + + Closed by @Html.UserLink(open.ClosedBy) at @open.ClosedAt + </p> + </td> + <td><a href="@Url.Action("OpenBug", new { id = open.Id })" class="btn btn-default"><span class="glyphicon glyphicon-unchecked"></span> Reopen Bug</a></td> + </tr> + } + </table> + + + </div> +</div>
\ No newline at end of file |
