summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Download
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-14 18:35:45 -0400
committerMichael <[email protected]>2017-04-14 18:35:45 -0400
commitefc9acb1061eff647dc86bf7c9fcbad4bf14f3b2 (patch)
tree65fadc9957213ef182d83e09e59addfd1a8a4e00 /Project-Unite/Views/Download
parent4fd744368c821da0c151672549c110560f8e1e33 (diff)
downloadproject-unite-efc9acb1061eff647dc86bf7c9fcbad4bf14f3b2.tar.gz
project-unite-efc9acb1061eff647dc86bf7c9fcbad4bf14f3b2.tar.bz2
project-unite-efc9acb1061eff647dc86bf7c9fcbad4bf14f3b2.zip
Show bugs on release pages
Diffstat (limited to 'Project-Unite/Views/Download')
-rw-r--r--Project-Unite/Views/Download/ViewRelease.cshtml50
1 files changed, 49 insertions, 1 deletions
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)
+
+ <h4>Reported bugs</h4>
+
+ @if (Model.OpenBugs.Length == 0)
+ {
+ <p>There are no reported bugs to display.</p>
+ }
+ else
+ {
+ <table class="table">
+ <tr>
+ <th style="width:55%">Bug</th>
+ <th>Urgency</th>
+ <th>Actions</th>
+ </tr>
+
+ @foreach (var bug in Model.OpenBugs.OrderByDescending(x=>x.Urgency))
+ {
+ <tr>
+ <td>
+ @Html.ActionLink(bug.Name, "ViewBug", "Bugs", null, new { id=bug.Id})<br/>
+ Opened by @Html.UserLink(bug.Reporter) at @bug.ReportedAt
+ </td>
+ <th>
+ @switch (bug.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;
+ }
+ </th>
+ <th>
+ <a href="@Url.Action("ViewBug", "Bugs", new {id=bug.Id})" class="btn btn-default"><span class="glyphicon glyphicon-eye-open"></span> View bug</a>
+ </th>
+ </tr>
+ }
+ </table>
+ }
</div>
<div class="col-xs-4">
<h3>Download</h3>
@@ -40,7 +88,7 @@
<p>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!</p>
@if (Model.Obsolete)
- {
+ {
<h4>This build is obsolete!</h4>
<p>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?</p>