From d134d542254080bef7f3c969310c513624552a39 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 17 Nov 2019 20:24:42 +0000 Subject: [PATCH] Remote details from SSCs. --- .../Areas/Admin/Controllers/SscsController.cs | 18 ------ .../Areas/Admin/Views/Sscs/Details.cshtml | 62 ------------------- .../Areas/Admin/Views/Sscs/Index.cshtml | 1 - 3 files changed, 81 deletions(-) delete mode 100644 DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml diff --git a/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs b/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs index 90c27b26..19d37d77 100644 --- a/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs +++ b/DiscImageChef.Server/Areas/Admin/Controllers/SscsController.cs @@ -20,24 +20,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers View(await _context.Ssc.OrderBy(s => s.MinBlockLength).ThenBy(s => s.MaxBlockLength). ThenBy(s => s.BlockSizeGranularity).ToListAsync()); - // GET: Admin/Sscs/Details/5 - public async Task Details(int? id) - { - if(id == null) - { - return NotFound(); - } - - Ssc ssc = await _context.Ssc.FirstOrDefaultAsync(m => m.Id == id); - - if(ssc == null) - { - return NotFound(); - } - - return View(ssc); - } - // GET: Admin/Sscs/Delete/5 public async Task Delete(int? id) { diff --git a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml deleted file mode 100644 index bc7d1c2d..00000000 --- a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Details.cshtml +++ /dev/null @@ -1,62 +0,0 @@ -@model DiscImageChef.CommonTypes.Metadata.Ssc - -@{ - 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 - // ****************************************************************************/ -} -
-

Ssc

-
-
-
- @Html.DisplayNameFor(model => model.BlockSizeGranularity) -
-
- @Html.DisplayFor(model => model.BlockSizeGranularity) -
-
- @Html.DisplayNameFor(model => model.MaxBlockLength) -
-
- @Html.DisplayFor(model => model.MaxBlockLength) -
-
- @Html.DisplayNameFor(model => model.MinBlockLength) -
-
- @Html.DisplayFor(model => model.MinBlockLength) -
-
-
- \ No newline at end of file diff --git a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml index 476cae70..1be0cb11 100644 --- a/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml +++ b/DiscImageChef.Server/Areas/Admin/Views/Sscs/Index.cshtml @@ -62,7 +62,6 @@ @Html.DisplayFor(modelItem => item.BlockSizeGranularity) - Details Delete