@{ /****************************************************************************** // MARECHAI: Master repository of computing history artifacts information // ---------------------------------------------------------------------------- // // Filename : Details.cshtml // Author(s) : Natalia Portillo // // --[ Description ] ---------------------------------------------------------- // // Admin view details // // --[ License ] -------------------------------------------------------------- // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // ---------------------------------------------------------------------------- // Copyright © 2003-2020 Natalia Portillo *******************************************************************************/ } @page "/admin/gpus/details/{Id:int}" @page "/admin/gpus/edit/{Id:int}" @inherits OwningComponentBase @inject IStringLocalizer L @inject CompaniesService CompaniesService @inject NavigationManager NavigationManager @attribute [Authorize(Roles = "UberAdmin, Admin")]

@L["Graphical processing unit details"]


@if (!_loaded) {

@L["Loading..."]

return; }
@if (_editing || _model.CompanyId != null) { @L["Company"] @if (_editing) { @L["Unknown (company)"] } @if (!_editing || !_unknownCompany) { } } @L["Name"] @L["Please enter a valid name."] @if (_editing || _model.ModelCode != null) { @L["Model code"] @if (_editing) { @L["Unknown (model code)"] } @if (!_editing || !_unknownModelCode) { @L["Please enter a valid model code."] } } @if (_editing || _model.Introduced.HasValue) { @L["Introduced"] @if (_editing) { @L["Unknown (introduction date)"] @L["Prototype"] } @if (!_editing || (!_prototype && !_unknownIntroduced)) { @L["Please enter an introduction date."] } } @if (_editing || _model.Package != null) { @L["Package"] @if (_editing) { @L["Unknown (package)"] } @if (!_editing || !_unknownPackage) { @L["Please enter a valid package."] } } @if (_editing || _model.Process != null) { @L["Process"] @if (_editing) { @L["Unknown (process)"] } @if (!_editing || !_unknownProcess) { @L["Please enter a valid process."] } } @if (_editing || _model.ProcessNm.HasValue) { @L["Process (nm)"] @if (_editing) { @L["Unknown (process size)"] } @if (!_editing || !_unknownProcessNm) { @L["Please enter a valid process size in nanometers."] } } @if (_editing || _model.DieSize.HasValue) { @L["Die size (mm²)"] @if (_editing) { @L["Unknown (die size)"] } @if (!_editing || !_unknownDieSize) { @L["Please enter a valid die size in square millimeters."] } } @if (_editing || _model.Transistors.HasValue) { @L["Transistors"] @if (_editing) { @L["Unknown (transistors)"] } @if (!_editing || !_unknownTransistors) { @L["Please enter a valid number of transistors."] } }
@if (!_editing) { } else { } @L["Back to list"]