From efc9acb1061eff647dc86bf7c9fcbad4bf14f3b2 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 14 Apr 2017 18:35:45 -0400 Subject: Show bugs on release pages --- Project-Unite/Views/Download/ViewRelease.cshtml | 50 ++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) (limited to 'Project-Unite/Views') diff --git a/Project-Unite/Views/Download/ViewRelease.cshtml b/Project-Unite/Views/Download/ViewRelease.cshtml index 56b8453..e6bc1de 100644 --- a/Project-Unite/Views/Download/ViewRelease.cshtml +++ b/Project-Unite/Views/Download/ViewRelease.cshtml @@ -30,6 +30,54 @@ } @Html.Markdown(Model.Changelog) + +

Reported bugs

+ + @if (Model.OpenBugs.Length == 0) + { +

There are no reported bugs to display.

+ } + else + { + + + + + + + + @foreach (var bug in Model.OpenBugs.OrderByDescending(x=>x.Urgency)) + { + + + + + + } +
BugUrgencyActions
+ @Html.ActionLink(bug.Name, "ViewBug", "Bugs", null, new { id=bug.Id})
+ Opened by @Html.UserLink(bug.Reporter) at @bug.ReportedAt +
+ @switch (bug.Urgency) + { + case 0: + Minor + break; + case 1: + Moderate + + break; + case 2: + Major + break; + case 3: + Critical + break; + } + + View bug +
+ }

Download

@@ -40,7 +88,7 @@

If you have any issues with this build, please let us know. Also, to find out a bit more about the build, if you haven't already, check out the details to the left!

@if (Model.Obsolete) - { + {

This build is obsolete!

We no longer support this build, and thus, any issues with this build that arise as we develop the game further will not be fixed. Consider picking up a more up-to-date build?

-- cgit v1.2.3