mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Sort uploaded results.
This commit is contained in:
@@ -16,7 +16,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
|||||||
public ReportsController(DicServerContext context) => _context = context;
|
public ReportsController(DicServerContext context) => _context = context;
|
||||||
|
|
||||||
// GET: Admin/Reports
|
// GET: Admin/Reports
|
||||||
public async Task<IActionResult> Index() => View(await _context.Reports.ToListAsync());
|
public async Task<IActionResult> Index() =>
|
||||||
|
View(await _context.Reports.OrderBy(r => r.Manufacturer).ThenBy(r => r.Model).ThenBy(r => r.Revision).
|
||||||
|
ThenBy(r => r.CompactFlash).ThenBy(r => r.Type).ToListAsync());
|
||||||
|
|
||||||
// GET: Admin/Reports/Details/5
|
// GET: Admin/Reports/Details/5
|
||||||
public async Task<IActionResult> Details(int? id)
|
public async Task<IActionResult> Details(int? id)
|
||||||
|
|||||||
@@ -4,18 +4,9 @@
|
|||||||
ViewData["Title"] = "Index";
|
ViewData["Title"] = "Index";
|
||||||
}
|
}
|
||||||
<h1>Index</h1>
|
<h1>Index</h1>
|
||||||
<p>
|
|
||||||
<a asp-action="Create">Create New</a>
|
|
||||||
</p>
|
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.UploadedWhen)
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.CompactFlash)
|
|
||||||
</th>
|
|
||||||
<th>
|
<th>
|
||||||
@Html.DisplayNameFor(model => model.Manufacturer)
|
@Html.DisplayNameFor(model => model.Manufacturer)
|
||||||
</th>
|
</th>
|
||||||
@@ -25,6 +16,9 @@
|
|||||||
<th>
|
<th>
|
||||||
@Html.DisplayNameFor(model => model.Revision)
|
@Html.DisplayNameFor(model => model.Revision)
|
||||||
</th>
|
</th>
|
||||||
|
<th>
|
||||||
|
@Html.DisplayNameFor(model => model.CompactFlash)
|
||||||
|
</th>
|
||||||
<th>
|
<th>
|
||||||
@Html.DisplayNameFor(model => model.Type)
|
@Html.DisplayNameFor(model => model.Type)
|
||||||
</th>
|
</th>
|
||||||
@@ -35,12 +29,6 @@
|
|||||||
@foreach (var item in Model)
|
@foreach (var item in Model)
|
||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
|
||||||
@Html.DisplayFor(modelItem => item.UploadedWhen)
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@Html.DisplayFor(modelItem => item.CompactFlash)
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.Manufacturer)
|
@Html.DisplayFor(modelItem => item.Manufacturer)
|
||||||
</td>
|
</td>
|
||||||
@@ -50,6 +38,9 @@
|
|||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.Revision)
|
@Html.DisplayFor(modelItem => item.Revision)
|
||||||
</td>
|
</td>
|
||||||
|
<td>
|
||||||
|
@Html.DisplayFor(modelItem => item.CompactFlash)
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.Type)
|
@Html.DisplayFor(modelItem => item.Type)
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user