mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Show processors in instruction set extension details.
This commit is contained in:
@@ -62,6 +62,10 @@ namespace cicm_web.Areas.Admin.Controllers
|
|||||||
await _context.InstructionSetExtensions.FirstOrDefaultAsync(m => m.Id == id);
|
await _context.InstructionSetExtensions.FirstOrDefaultAsync(m => m.Id == id);
|
||||||
if(instructionSetExtension == null) return NotFound();
|
if(instructionSetExtension == null) return NotFound();
|
||||||
|
|
||||||
|
ViewBag.Processors = _context.InstructionSetExtensionsByProcessor.Where(e => e.ExtensionId == id)
|
||||||
|
.Join(_context.Processors, p => p.ProcessorId, i => i.Id, (p, i) => i)
|
||||||
|
.Select(p => p.Name);
|
||||||
|
|
||||||
return View(instructionSetExtension);
|
return View(instructionSetExtension);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,8 +48,29 @@
|
|||||||
@Html.DisplayFor(model => model.Extension)
|
@Html.DisplayFor(model => model.Extension)
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
@if(ViewBag.Processors != null)
|
||||||
|
{
|
||||||
|
<dl class="dl-horizontal">
|
||||||
|
<dt>
|
||||||
|
Processors
|
||||||
|
</dt>
|
||||||
|
<dd>
|
||||||
|
@foreach(string processor in ViewBag.Processors)
|
||||||
|
{
|
||||||
|
@processor<br />
|
||||||
|
}
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
|
<a asp-action="Edit"
|
||||||
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
asp-route-id="@Model.Id"
|
||||||
</div>
|
class="btn btn-primary">
|
||||||
|
Edit
|
||||||
|
</a>
|
||||||
|
<a asp-action="Index"
|
||||||
|
class="btn btn-secondary">
|
||||||
|
Back to List
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
<Version>3.0.99.521</Version>
|
<Version>3.0.99.533</Version>
|
||||||
<Company>Canary Islands Computer Museum</Company>
|
<Company>Canary Islands Computer Museum</Company>
|
||||||
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
||||||
<Product>Canary Islands Computer Museum Website</Product>
|
<Product>Canary Islands Computer Museum Website</Product>
|
||||||
|
|||||||
Reference in New Issue
Block a user