mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort device reports.
This commit is contained in:
@@ -15,7 +15,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
public DevicesController(DicServerContext context) => _context = context;
|
||||
|
||||
// GET: Admin/Devices
|
||||
public async Task<IActionResult> Index() => View(await _context.Devices.ToListAsync());
|
||||
public async Task<IActionResult> Index() =>
|
||||
View(await _context.Devices.OrderBy(d => d.Manufacturer).ThenBy(d => d.Model).ThenBy(d => d.Revision).
|
||||
ThenBy(d => d.CompactFlash).ThenBy(d => d.Type).ToListAsync());
|
||||
|
||||
// GET: Admin/Devices/Details/5
|
||||
public async Task<IActionResult> Details(int? id)
|
||||
|
||||
@@ -36,18 +36,6 @@
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.AddedWhen)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModifiedWhen)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.OptimalMultipleSectorsRead)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.CompactFlash)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Manufacturer)
|
||||
</th>
|
||||
@@ -57,6 +45,12 @@
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Revision)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.CompactFlash)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.OptimalMultipleSectorsRead)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Type)
|
||||
</th>
|
||||
@@ -67,18 +61,6 @@
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.AddedWhen)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModifiedWhen)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.OptimalMultipleSectorsRead)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CompactFlash)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Manufacturer)
|
||||
</td>
|
||||
@@ -88,6 +70,12 @@
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Revision)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CompactFlash)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.OptimalMultipleSectorsRead)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Type)
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user