diff --git a/Project-Unite/Controllers/DownloadController.cs b/Project-Unite/Controllers/DownloadController.cs index 58e3c36..fc03f2b 100644 --- a/Project-Unite/Controllers/DownloadController.cs +++ b/Project-Unite/Controllers/DownloadController.cs @@ -15,5 +15,14 @@ namespace Project_Unite.Controllers var db = new ApplicationDbContext(); return View(db.Downloads); } + + public ActionResult ViewRelease(string id) + { + var db = new ApplicationDbContext(); + var release = db.Downloads.Where(x => x.Id == id); + if (release == null) + return new HttpStatusCodeResult(404); + return View(release); + } } } \ No newline at end of file diff --git a/Project-Unite/Project-Unite.csproj b/Project-Unite/Project-Unite.csproj index afb2d1d..49bdef7 100644 --- a/Project-Unite/Project-Unite.csproj +++ b/Project-Unite/Project-Unite.csproj @@ -541,6 +541,7 @@ + diff --git a/Project-Unite/Views/Download/ViewRelease.cshtml b/Project-Unite/Views/Download/ViewRelease.cshtml new file mode 100644 index 0000000..32c0fdf --- /dev/null +++ b/Project-Unite/Views/Download/ViewRelease.cshtml @@ -0,0 +1,47 @@ +@model Project_Unite.Models.Download +@{ + ViewBag.Title = Model.Name; +} + +

@Model.Name

+ +

Released by @Html.UserLink(Model.ReleasedBy) at @Model.PostDate - + + @if (Model.IsStable) + { + This build is stable! + } + else + { + This build is unstable. + } +

+ +
+
+ @if (!string.IsNullOrWhiteSpace(Model.DevUpdateId)) + { + + + } + + + @Html.Markdown(Model.Changelog) +
+
+

Download

+ + Download .ZIP + +

At ShiftOS, we strive to make your experience in the multi-user domain as reliable as possible.

+

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?

+ } +
+
+