mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort SSCs.
This commit is contained in:
@@ -16,7 +16,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
public SscsController(DicServerContext context) => _context = context;
|
public SscsController(DicServerContext context) => _context = context;
|
||||||
|
|
||||||
// GET: Admin/Sscs
|
// GET: Admin/Sscs
|
||||||
public async Task<IActionResult> Index() => View(await _context.Ssc.ToListAsync());
|
public async Task<IActionResult> Index() =>
|
||||||
|
View(await _context.Ssc.OrderBy(s => s.MinBlockLength).ThenBy(s => s.MaxBlockLength).
|
||||||
|
ThenBy(s => s.BlockSizeGranularity).ToListAsync());
|
||||||
|
|
||||||
// GET: Admin/Sscs/Details/5
|
// GET: Admin/Sscs/Details/5
|
||||||
public async Task<IActionResult> Details(int? id)
|
public async Task<IActionResult> Details(int? id)
|
||||||
|
|||||||
@@ -37,13 +37,13 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
@Html.DisplayNameFor(model => model.BlockSizeGranularity)
|
@Html.DisplayNameFor(model => model.MinBlockLength)
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
@Html.DisplayNameFor(model => model.MaxBlockLength)
|
@Html.DisplayNameFor(model => model.MaxBlockLength)
|
||||||
</th>
|
</th>
|
||||||
<th>
|
<th>
|
||||||
@Html.DisplayNameFor(model => model.MinBlockLength)
|
@Html.DisplayNameFor(model => model.BlockSizeGranularity)
|
||||||
</th>
|
</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -53,13 +53,13 @@
|
|||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.BlockSizeGranularity)
|
@Html.DisplayFor(modelItem => item.MinBlockLength)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.MaxBlockLength)
|
@Html.DisplayFor(modelItem => item.MaxBlockLength)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.MinBlockLength)
|
@Html.DisplayFor(modelItem => item.BlockSizeGranularity)
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
|
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user