diff --git a/Marechai/Marechai.csproj b/Marechai/Marechai.csproj index 2a3121ce..86ca17bb 100644 --- a/Marechai/Marechai.csproj +++ b/Marechai/Marechai.csproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 3.0.99.969 + 3.0.99.971 Canary Islands Computer Museum Copyright © 2003-2020 Natalia Portillo Canary Islands Computer Museum Website diff --git a/Marechai/Pages/Machines/View.razor b/Marechai/Pages/Machines/View.razor index 834d9d7b..70603cff 100644 --- a/Marechai/Pages/Machines/View.razor +++ b/Marechai/Pages/Machines/View.razor @@ -3,12 +3,12 @@ // MARECHAI: Master repository of computing history artifacts information // ---------------------------------------------------------------------------- // -// Filename : Index.cshtml +// Filename : View.razor // Author(s) : Natalia Portillo // // --[ Description ] ---------------------------------------------------------- // -// Index page (and news) +// Shows a machine information // // --[ License ] -------------------------------------------------------------- // @@ -32,9 +32,8 @@ } @page "/machine/{Id:int}" -@using Marechai.Database.Models -@using Marechai.Database +@using Marechai.Database @inherits OwningComponentBase @inject IStringLocalizer L @inject IWebHostEnvironment Host @@ -54,17 +53,17 @@ }

- @if (_machine.Company.LastLogo != null && - File.Exists(Path.Combine(Host.WebRootPath, "assets/logos", _machine.Company.LastLogo.Guid + ".svg"))) + @if (_machine.CompanyLogo != null && + File.Exists(Path.Combine(Host.WebRootPath, "assets/logos", _machine.CompanyLogo + ".svg"))) { - - - + + + }

@@ -78,8 +77,8 @@ } - - @_machine.Company.Name @_machine.Name + + @_machine.CompanyName @_machine.Name @if (_machine.Introduced.HasValue && @@ -97,7 +96,7 @@ } -@if (_machine.Family != null) +@if (_machine.FamilyId != null) { } @@ -135,17 +134,17 @@
@@ -106,8 +105,8 @@ - - @_machine.Family.Name + + @_machine.FamilyName
@{ counter = 0; } - @foreach (var processorByMachine in _machine.Processors) + @foreach (var processor in _machine.Processors) {
- @if (processorByMachine.Speed > 0) + @if (processor.Speed > 0) { - @(processorByMachine.Processor.GprSize > 0 ? $"{processorByMachine.Processor.Name} @ {processorByMachine.Speed}Mhz ({processorByMachine.Processor.GprSize} bits)" : $"{processorByMachine.Processor.Name} @ {processorByMachine.Speed}Mhz") + @(processor.GprSize > 0 ? $"{processor.Name} @ {processor.Speed}Mhz ({processor.GprSize} bits)" : $"{processor.Name} @ {processor.Speed}Mhz") } else { - @($"{processorByMachine.Processor.Name}") + @($"{processor.Name}") }