diff --git a/LANCommander/Views/Games/Delete.cshtml b/LANCommander/Views/Games/Delete.cshtml index 790d342..308564b 100644 --- a/LANCommander/Views/Games/Delete.cshtml +++ b/LANCommander/Views/Games/Delete.cshtml @@ -4,54 +4,62 @@ ViewData["Title"] = "Delete"; } -

Delete

+
+ +
+
+

Are you sure you want to delete this game? + @if (Model.Archives != null && Model.Archives.Count > 0) + { + It will also delete the following archives: + } +

+
-

Are you sure you want to delete this?

-
-

Game

-
-
-
- @Html.DisplayNameFor(model => model.Title) -
-
- @Html.DisplayFor(model => model.Title) -
-
- @Html.DisplayNameFor(model => model.SortTitle) -
-
- @Html.DisplayFor(model => model.SortTitle) -
-
- @Html.DisplayNameFor(model => model.Description) -
-
- @Html.DisplayFor(model => model.Description) -
-
- @Html.DisplayNameFor(model => model.ReleasedOn) -
-
- @Html.DisplayFor(model => model.ReleasedOn) -
-
- @Html.DisplayNameFor(model => model.CreatedOn) -
-
- @Html.DisplayFor(model => model.CreatedOn) -
-
- @Html.DisplayNameFor(model => model.UpdatedOn) -
-
- @Html.DisplayFor(model => model.UpdatedOn) -
-
- -
- - | - Back to List -
-
+ @if (Model.Archives != null && Model.Archives.Count > 0) + { +
+ + + + + + + + + + + + @foreach (var archive in Model.Archives.OrderByDescending(a => a.CreatedOn)) + { + + + + + + + } + +
VersionUploaded ByUploaded OnSize
@Html.DisplayFor(m => archive.Version)@Html.DisplayFor(m => archive.CreatedBy.UserName)@Html.DisplayFor(m => archive.CreatedOn)@ByteSizeLib.ByteSize.FromBytes(archive.CompressedSize)
+
+ } + + + +
+
\ No newline at end of file