mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Link read capabilities on device report details.
This commit is contained in:
@@ -75,6 +75,9 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
|
||||
d.Report.Id != model.Report.Id).AsEnumerable().
|
||||
Where(d => model.StatsAll.All(s => s.Id != d.Id)).ToList();
|
||||
|
||||
model.ReadCapabilitiesId =
|
||||
model.Report.ATA?.ReadCapabilities?.Id ?? model.Report.SCSI?.ReadCapabilities?.Id ?? 0;
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,12 @@
|
||||
<a asp-action="Edit" asp-route-id="@Model.Report.Id" class="btn btn-primary">Edit</a>
|
||||
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
||||
</div>
|
||||
@if (Model.ReadCapabilitiesId != 0)
|
||||
{
|
||||
<div>
|
||||
<a asp-controller="TestedMedias" asp-action="Details" asp-route-id="@Model.ReadCapabilitiesId" target="_blank">Read capabilities</a>
|
||||
</div>
|
||||
}
|
||||
@if (Model.Report.ATA != null)
|
||||
{
|
||||
<div>
|
||||
|
||||
@@ -11,5 +11,6 @@ namespace DiscImageChef.Server.Models
|
||||
public List<int> ReportButManufacturer { get; set; }
|
||||
public List<DeviceStat> StatsAll { get; set; }
|
||||
public List<DeviceStat> StatsButManufacturer { get; set; }
|
||||
public int ReadCapabilitiesId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user