From 0e8d5cf1ffa33dcb13265160b29397aa1b1684a3 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 10 Nov 2019 19:07:46 +0000 Subject: [PATCH] Remove details from device stats. --- .../Controllers/DeviceStatsController.cs | 18 ----- .../Admin/Views/DeviceStats/Details.cshtml | 69 ------------------- .../Admin/Views/DeviceStats/Index.cshtml | 1 - 3 files changed, 88 deletions(-) delete mode 100644 DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Details.cshtml diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs index 6a37f493..1480a859 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/DeviceStatsController.cs @@ -17,24 +17,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers // GET: Admin/DeviceStats public async Task Index() => View(await _context.DeviceStats.ToListAsync()); - // GET: Admin/DeviceStats/Details/5 - public async Task Details(int? id) - { - if(id == null) - { - return NotFound(); - } - - DeviceStat deviceStat = await _context.DeviceStats.FirstOrDefaultAsync(m => m.Id == id); - - if(deviceStat == null) - { - return NotFound(); - } - - return View(deviceStat); - } - // GET: Admin/DeviceStats/Edit/5 public async Task Edit(int? id) { diff --git a/DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Details.cshtml b/DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Details.cshtml deleted file mode 100644 index 1a9e56a3..00000000 --- a/DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Details.cshtml +++ /dev/null @@ -1,69 +0,0 @@ -@model DeviceStat - -@{ - Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml"; - ViewBag.Title = "DiscImageChef"; -} -@{ - // /*************************************************************************** - // The Disc Image Chef - // ---------------------------------------------------------------------------- - // - // Filename : Details.cshtml - // Author(s) : Natalia Portillo - // - // Component : DiscImageChef Server. - // - // --[ License ] -------------------------------------------------------------- - // - // This library is free software; you can redistribute it and/or modify - // it under the terms of the GNU Lesser General Public License as - // published by the Free Software Foundation; either version 2.1 of the - // License, or (at your option) any later version. - // - // This library is distributed in the hope that it will be useful, but - // WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - // Lesser General Public License for more details. - // - // You should have received a copy of the GNU Lesser General Public - // License along with this library; if not, see . - // - // ---------------------------------------------------------------------------- - // Copyright © 2011-2019 Natalia Portillo - // ****************************************************************************/ -} -
-

DeviceStat

-
-
-
- @Html.DisplayNameFor(model => model.Manufacturer) -
-
- @Html.DisplayFor(model => model.Manufacturer) -
-
- @Html.DisplayNameFor(model => model.Model) -
-
- @Html.DisplayFor(model => model.Model) -
-
- @Html.DisplayNameFor(model => model.Revision) -
-
- @Html.DisplayFor(model => model.Revision) -
-
- @Html.DisplayNameFor(model => model.Bus) -
-
- @Html.DisplayFor(model => model.Bus) -
-
-
- \ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Index.cshtml b/DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Index.cshtml index fd6a7b75..4b902468 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Index.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/DeviceStats/Index.cshtml @@ -68,7 +68,6 @@ @Html.DisplayFor(modelItem => item.Bus) - Details Edit Delete