Files
marechai/Marechai/Pages/Machines/View.razor

894 lines
41 KiB
Plaintext
Raw Normal View History

2020-05-22 03:35:50 +01:00
@{
/******************************************************************************
2020-02-10 01:52:56 +00:00
// MARECHAI: Master repository of computing history artifacts information
2018-04-14 07:13:11 +01:00
// ----------------------------------------------------------------------------
//
// Filename : View.razor
2018-04-14 07:13:11 +01:00
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ Description ] ----------------------------------------------------------
//
// Shows a machine information
2018-04-14 07:13:11 +01:00
//
// --[ 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 <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
2020-02-10 03:05:39 +00:00
// Copyright © 2003-2020 Natalia Portillo
2018-04-14 07:13:11 +01:00
*******************************************************************************/
2020-05-22 03:35:50 +01:00
// TODO: Resolutions
2018-04-14 07:13:11 +01:00
}
2020-05-22 03:35:50 +01:00
@page "/machine/{Id:int}"
@using Marechai.Database
2020-05-22 03:35:50 +01:00
@inherits OwningComponentBase<MachinesService>
@inject IStringLocalizer<MachinesService> L
@inject IWebHostEnvironment Host
@if (!_loaded)
{
<p align="center">@L["Loading..."]</p>
return;
}
@if (_machine is null)
{
<p align="center">@L["Machine not found in database"]</p>
return;
}
2018-08-06 21:07:23 +01:00
<p align="center">
@if (_machine.CompanyLogo != null &&
File.Exists(Path.Combine(Host.WebRootPath, "assets/logos", _machine.CompanyLogo + ".svg")))
{
<picture>
<source type="image/svg+xml" srcset="/assets/logos/@(_machine.CompanyLogo).svg">
<source type="image/webp" srcset="/assets/logos/webp/1x/@(_machine.CompanyLogo).webp,
/assets/logos/webp/2x/@(_machine.CompanyLogo).webp 2x,
/assets/logos/webp/3x/@(_machine.CompanyLogo).webp 3x">
<img srcset="/assets/logos/png/1x/@(_machine.CompanyLogo).png,
/assets/logos/png/2x/@(_machine.CompanyLogo).png 2x,
/assets/logos/png/3x/@(_machine.CompanyLogo).png 3x" src="/assets/logos/png/1x/@(_machine.CompanyLogo).png" alt="" height="auto" width="auto" style="max-height: 256px; max-width: 256px" />
</picture>
}
</p>
2020-02-10 22:44:18 +00:00
@{ var counter = 0; }
2020-05-22 03:35:50 +01:00
@if (_machine.Introduced.HasValue &&
_machine.Introduced.Value.Year == 1000)
2018-04-14 07:13:11 +01:00
{
<b>
<div style="text-align: center;">@L["PROTOTYPE"]</div>
2018-04-14 07:13:11 +01:00
</b>
}
<b>
<a href="/company/@_machine.CompanyId">
@_machine.Company</a> @_machine.Name</b>
2018-08-06 21:07:23 +01:00
<table width="100%">
2018-04-14 07:13:11 +01:00
2020-05-22 03:35:50 +01:00
@if (_machine.Introduced.HasValue &&
_machine.Introduced.Value.Year != 1000)
2018-04-14 07:13:11 +01:00
{
<tr>
2020-02-10 22:44:18 +00:00
<th scope=row width="37%">
2018-04-14 07:13:11 +01:00
<div align=right>
@L["Introduction date"]
2018-04-14 07:13:11 +01:00
</div>
</th>
<td width="63%">
2020-05-22 03:35:50 +01:00
<a asp-controller="Computer" asp-action="ByYear" asp-route-id="@_machine.Introduced.Value.Year">
@_machine.Introduced.Value.ToLongDateString()</a>
2018-04-14 07:13:11 +01:00
</td>
</tr>
}
@if (_machine.FamilyId != null)
{
<tr>
2020-02-10 22:44:18 +00:00
<th scope=row width="37%">
<div align=right>
@L["Family"]
</div>
</th>
<td width="63%">
<a href="/machines/family/@_machine.FamilyId">
@_machine.FamilyName</a>
</td>
</tr>
}
2020-05-22 03:35:50 +01:00
@if (_machine.Model != null)
{
<tr>
2020-02-10 22:44:18 +00:00
<th scope=row width="37%">
<div align=right>
@L["Model"]
</div>
</th>
<td width="63%">
2020-05-22 03:35:50 +01:00
@_machine.Model
</td>
</tr>
}
2020-05-22 03:35:50 +01:00
@if (_machine.Processors.Count > 0)
2018-04-14 07:13:11 +01:00
{
<tr>
<th scope=row>
<div align=right>
@L["Processors"]
</div>
</th>
<td>
<table>
@{ counter = 0; }
@foreach (var processor in _machine.Processors)
{
int currentCounter = counter;
<tr>
<td>
<Collapse Visible="@_processorVisible[currentCounter]">
<CollapseHeader>
@if (processor.Speed > 0)
{
@(processor.GprSize > 0 ? string.Format(L["{0} @ {1}MHz ({2} bits)"], processor.Name, processor.Speed, processor.GprSize) : string.Format(L["{0} @ {1}MHz"], processor.Name, processor.Speed))
}
else
{
@($"{processor.Name}")
}
<span class="btn btn-link" @onclick="() => _processorVisible[currentCounter] = !_processorVisible[currentCounter]">
@L["+info"]
</span>
</CollapseHeader>
<CollapseBody Class="card card-body">
<table>
@if (processor.ModelCode != null &&
processor.ModelCode != processor.Name)
{
<tr>
<td>@L["Model"]</td>
<td>@processor.ModelCode</td>
</tr>
}
<tr>
<td>@L["Manufacturer"]</td>
<td>
<a href="/processors/company/@processor.CompanyId">
@processor.CompanyName</a>
</td>
</tr>
@if (processor.Introduced != null)
{
<tr>
<td>@L["Introduction date"]</td>
<td>@($"{processor.Introduced:yyyy}")</td>
</tr>
}
@if (processor.InstructionSet != null)
{
<tr>
<td>@L["Instruction set"]</td>
<td>@processor.InstructionSet</td>
</tr>
}
@if (processor.Speed > 0)
{
<tr>
<td>@L["Nominal speed"]</td>
<td>@string.Format(L["{0} MHz"], processor.Speed)</td>
</tr>
}
@if (processor.Gprs > 0 ||
processor.Fprs > 0 ||
processor.SimdRegisters > 0)
{
<tr>
<td>@L["Registers"]</td>
<td>
<table>
@if (processor.Gprs > 0)
{
<tr>
<td>
@if (processor.FprSize > 0 &&
processor.Fprs == 0 &&
processor.SimdSize > 0 &&
processor.SimdRegisters == 0)
{
@(string.Format(L["{0} general purpose registers of {1} bits that can be used as floating point registers of {2} bits and SIMD registers of {3} bits."],
processor.Gprs, processor.GprSize, processor.FprSize, processor.SimdSize))
}
else if (processor.FprSize > 0 &&
processor.Fprs == 0)
{
@(string.Format(L["{0} general purpose registers of {1} bits that can be used as floating point registers of {2} bits."],
processor.Gprs, processor.GprSize, processor.FprSize))
}
else if (processor.FprSize == 0 &&
processor.SimdSize > 0 &&
processor.SimdRegisters == 0)
{
@(string.Format(L["{0} general purpose registers of {1} bits that can be used as SIMD registers of {2} bits."],
processor.Gprs, processor.GprSize, processor.SimdSize))
}
else
{
@(string.Format(L["{0} general purpose registers of {1} bits."], processor.Gprs, processor.GprSize))
}
</td>
</tr>
}
@if (processor.Fprs > 0)
2020-02-10 22:44:18 +00:00
{
<tr>
<td>
@if (processor.SimdSize > 0 &&
processor.SimdRegisters == 0)
{
@(string.Format(L["{0} floating point registers of {1} bits that can be used as SIMD registers of {2} bits."],
processor.Fprs, processor.FprSize, processor.SimdSize))
}
else
{
@(string.Format(L["{0} floating point registers of {1} bits."],
processor.Fprs, processor.FprSize))
}
</td>
</tr>
2020-02-10 22:44:18 +00:00
}
@if (processor.SimdRegisters > 0)
2020-02-10 22:44:18 +00:00
{
<tr>
<td>
<abbr title="@L["Single instruction, multiple data"]">
@string.Format(L["{0} SIMD registers of {1} bits."], processor.SimdRegisters, processor.SimdSize)
</abbr>
</td>
</tr>
}
</table>
</td>
</tr>
}
@if (processor.Cores > 1)
{
<tr>
<td>@L["Multi-core"]</td>
<td>@string.Format(L["{0} cores."], processor.Cores)</td>
</tr>
}
@if (processor.ThreadsPerCore > 1)
{
<tr>
<td>
<abbr title="@L["Simultaneous multithreading"]">SMT</abbr>
</td>
<td>
@string.Format(processor.Cores > 1 ? L["{0} threads per core."] : L["{0} threads."], processor.ThreadsPerCore)
</td>
</tr>
}
@if (processor.DataBus > 0 ||
processor.AddrBus > 0)
{
<tr>
<td>@L["Bus"]</td>
<td>
<table>
@if (processor.DataBus > 0)
{
<tr>
<td>
@string.Format(L["{0}-bit data."], processor.DataBus)
</td>
</tr>
2020-02-10 22:44:18 +00:00
}
@if (processor.AddrBus > 0)
2020-02-10 22:44:18 +00:00
{
<tr>
<td>
@string.Format(L["{0}-bit address."], processor.AddrBus)
</td>
</tr>
}
</table>
</td>
</tr>
}
@if (processor.L1Instruction > 0 ||
processor.L1Data > 0 ||
processor.L2 > 0 ||
processor.L2 > 0)
{
<tr>
<td>@L["Cache"]</td>
<td>
<table>
@if (processor.L1Instruction > 0)
{
<tr>
<td>
@string.Format(processor.L1Data < 0 ? L["{0}KiB combined instruction-data L1"] : L["{0}KiB instruction L1"], processor.L1Instruction)
</td>
</tr>
2020-02-10 22:44:18 +00:00
}
@if (processor.L1Data > 0)
{
<tr>
<td>
@string.Format(L["{0}KiB data L1"], processor.L1Data)
</td>
</tr>
}
@if (processor.L2 > 0)
{
<tr>
<td>
@string.Format(L["{0}KiB L2"], processor.L2)
</td>
</tr>
}
@if (processor.L3 > 0)
{
<tr>
<td>
@string.Format(L["{0}KiB L3"], processor.L3)
</td>
</tr>
}
</table>
</td>
</tr>
}
@if (processor.Package != null)
{
<tr>
<td>@L["Package"]</td>
<td>@processor.Package</td>
</tr>
}
@if (processor.Process != null ||
processor.ProcessNm > 0)
{
<tr>
<td>@L["Manufacturing process"]</td>
<td>
@if (processor.Process != null &&
processor.ProcessNm > 0)
{
if (processor.ProcessNm > 100)
{
@(string.Format(L["{0} @ {1}µm"], processor.Process, processor.ProcessNm / 100))
}
else
{
@(string.Format(L["{0} @ {1}nm"], processor.Process, processor.ProcessNm))
}
}
else if (processor.ProcessNm > 0)
{
if (processor.ProcessNm > 100)
{
@(string.Format(L["{0}µm"], processor.ProcessNm / 100))
}
else
{
@(string.Format(L["{0}nm"], processor.ProcessNm))
}
}
else
{
@processor.Process
}
</td>
</tr>
}
@if (processor.DieSize > 0)
2020-02-10 22:44:18 +00:00
{
<tr>
<td>@L["Die size"]</td>
<td>@string.Format(L["{0} mm&sup2;"], processor.DieSize)</td>
</tr>
2020-02-10 22:44:18 +00:00
}
@if (processor.Transistors > 0)
2020-02-10 22:44:18 +00:00
{
<tr>
<td>@L["Transistors"]</td>
<td>@processor.Transistors</td>
</tr>
2020-02-10 22:44:18 +00:00
}
</table>
</CollapseBody>
</Collapse>
</td>
</tr>
counter++;
}
</table>
</td>
2018-04-14 07:13:11 +01:00
</tr>
}
2020-05-22 03:35:50 +01:00
@if (_machine.Memory != null &&
_machine.Memory.Count > 0)
{
<tr>
<th scope=row>
<div align=right>
@L["Memory"]
</div>
</th>
<td>
<table>
2020-05-22 03:35:50 +01:00
@foreach (var memory in _machine.Memory)
{
string memValue;
2020-02-10 22:44:18 +00:00
if (memory.Size > 1073741824)
{
memValue = string.Format(L["{0} GiB"], memory.Size / 1073741824);
2020-02-10 22:44:18 +00:00
}
else if (memory.Size > 1048576)
{
memValue = string.Format(L["{0} MiB"], memory.Size / 1048576);
2020-02-10 22:44:18 +00:00
}
else if (memory.Size > 1024)
{
memValue = string.Format(L["{0} KiB"], memory.Size / 1024);
2020-02-10 22:44:18 +00:00
}
else if (memory.Size > 0)
{
memValue = string.Format(L["{0} bytes"], memory.Size);
2020-02-10 22:44:18 +00:00
}
else
2020-02-10 22:44:18 +00:00
{
memValue = L["Unknown size"];
2020-02-10 22:44:18 +00:00
}
string speedValue;
2020-02-10 22:44:18 +00:00
if (memory.Speed > 1000000000)
{
speedValue = string.Format(L["{0} GHz"], memory.Speed / 1000000000);
2020-02-10 22:44:18 +00:00
}
else if (memory.Speed > 1000000)
{
speedValue = string.Format(L["{0} MHz"], memory.Speed / 1000000);
2020-02-10 22:44:18 +00:00
}
else if (memory.Speed > 1000)
{
speedValue = string.Format(L["{0} KHz"], memory.Speed / 1000);
2020-02-10 22:44:18 +00:00
}
else if (memory.Speed > 0)
{
speedValue = string.Format(L["{0} Hz"], memory.Speed);
2020-02-10 22:44:18 +00:00
}
else
2020-02-10 22:44:18 +00:00
{
speedValue = L["unknown speed"];
2020-02-10 22:44:18 +00:00
}
<tr>
<td>@string.Format(L["{0} of {1} memory ({2} at {3})"], memValue, memory.Usage, memory.Type, speedValue)</td>
</tr>
}
</table>
</td>
</tr>
}
2020-05-22 03:35:50 +01:00
@if (_machine.Gpus.Count > 0)
2018-04-27 15:29:53 +01:00
{
<tr>
<th scope=row>
<div align=right>
@L["Graphics processing units"]
2018-04-27 15:29:53 +01:00
</div>
</th>
<td>
<table>
@{ counter = 0; }
@foreach (var gpu in _machine.Gpus)
{
int currentCounter = counter;
if (gpu.Id == -2)
{
<td>
<Collapse Visible="@_gpuVisible[currentCounter]">
<CollapseHeader>
@L["Framebuffer"]
<span class="btn btn-link" @onclick="() => _gpuVisible[currentCounter] = !_gpuVisible[currentCounter]">
@L["+info"]
</span>
</CollapseHeader>
<CollapseBody Class="card card-body">
@L["This machine directly draws pixels from software to a memory region that's converted to video output by a DAC or similar without using any specific graphics processing unit."]
</CollapseBody>
</Collapse>
</td>
}
else
{
<td>
<Collapse Visible="@_gpuVisible[currentCounter]">
<CollapseHeader>
@($"{gpu.Name}")
<span class="btn btn-link" @onclick="() => _gpuVisible[currentCounter] = !_gpuVisible[currentCounter]">
@L["+info"]
</span>
</CollapseHeader>
<CollapseBody Class="card card-body">
<table>
@if (gpu.ModelCode != null &&
gpu.ModelCode != gpu.Name)
{
<tr>
<td>@L["Model"]</td>
<td>@gpu.ModelCode</td>
</tr>
}
<tr>
<td>@L["Manufacturer"]</td>
<td>
<a href="/gpus/company/@gpu.CompanyId">
@gpu.Company</a>
</td>
</tr>
@if (gpu.Introduced != null)
{
<tr>
<td>@L["Introduction date"]</td>
<td>@($"{gpu.Introduced:yyyy}")</td>
</tr>
}
@if (gpu.Package != null)
{
<tr>
<td>@L["Package"]</td>
<td>@gpu.Package</td>
</tr>
}
@if (gpu.Process != null ||
gpu.ProcessNm > 0)
{
<tr>
<td>@L["Manufacturing process"]</td>
<td>
@if (gpu.Process != null &&
gpu.ProcessNm > 0)
{
if (gpu.ProcessNm > 100)
{
@(string.Format(L["{0} @ {1}µm"], gpu.Process, gpu.ProcessNm / 100))
}
else
{
@(string.Format(L["{0} @ {1}nm"], gpu.Process, gpu.ProcessNm))
}
}
else if (gpu.ProcessNm > 0)
2020-02-10 22:44:18 +00:00
{
if (gpu.ProcessNm > 100)
{
@(string.Format(L["{0}µm"], gpu.ProcessNm / 100))
}
else
{
@(string.Format(L["{0}nm"], gpu.ProcessNm))
}
2020-02-10 22:44:18 +00:00
}
else
2020-02-10 22:44:18 +00:00
{
@gpu.Process
2020-02-10 22:44:18 +00:00
}
</td>
</tr>
}
@if (gpu.DieSize > 0)
{
<tr>
<td>@L["Die size"]</td>
<td>@string.Format(L["{0} mm&sup2;"], gpu.DieSize)</td>
</tr>
}
@if (gpu.Transistors > 0)
{
<tr>
<td>@L["Transistors"]</td>
<td>@gpu.Transistors</td>
</tr>
}
</table>
</CollapseBody>
</Collapse>
</td>
}
counter++;
}
</table>
</td>
</tr>
}
2020-05-23 05:23:50 +01:00
@if (_machine.SoundSynthesizers.Count > 0)
{
<tr>
<th scope=row>
<div align=right>
2020-05-23 05:23:50 +01:00
@L["Sound synthesizers"]
</div>
</th>
<td>
<table>
@{ counter = 0; }
2020-05-23 05:23:50 +01:00
@foreach (var sound in _machine.SoundSynthesizers)
{
int currentCounter = counter;
<tr>
@if (sound.Id == -2)
{
<td>
<Collapse Visible="@_soundVisible[currentCounter]">
<CollapseHeader>
@L["Software"]
<span class="btn btn-link" @onclick="() => _soundVisible[currentCounter] = !_soundVisible[currentCounter]">
@L["+info"]
</span>
</CollapseHeader>
<CollapseBody Class="card card-body">
@L["This machine directly sends data to a DAC or similar connected to the audio output."]
</CollapseBody>
</Collapse>
</td>
}
else
{
<td>
<Collapse Visible="@_soundVisible[currentCounter]">
<CollapseHeader>
@($"{sound.Name}")
<span class="btn btn-link" @onclick="() => _soundVisible[currentCounter] = !_soundVisible[currentCounter]">
@L["+info"]
</span>
</CollapseHeader>
<CollapseBody Class="card card-body">
<table>
@if (sound.ModelCode != null &&
sound.ModelCode != sound.Name)
2018-04-27 15:29:53 +01:00
{
<tr>
<td>@L["Model"]</td>
<td>@sound.ModelCode</td>
</tr>
2018-04-27 15:29:53 +01:00
}
@if (sound.CompanyId != null)
{
<tr>
<td>@L["Manufacturer"]</td>
<td>
<a href="/soundsynths/company/@sound.CompanyId">
@sound.CompanyName</a>
</td>
</tr>
}
@if (sound.Introduced != null)
{
<tr>
<td>@L["Introduction date"]</td>
<td>@($"{sound.Introduced:yyyy}")</td>
</tr>
}
@if (sound.Voices != null ||
sound.SquareWave != null ||
sound.WhiteNoise != null)
{
<tr>
<td>@L["Generators"]</td>
<td>
<table>
@if (sound.Voices != null)
{
<tr>
<td>@string.Format(L["{0} voices"], sound.Voices)</td>
</tr>
}
@if (sound.SquareWave != null)
{
<tr>
<td>@string.Format(L["{0} square wave"], sound.SquareWave)</td>
</tr>
}
@if (sound.WhiteNoise != null)
{
<tr>
<td>@string.Format(L["{0} white noise"], sound.WhiteNoise)</td>
</tr>
}
</table>
</td>
</tr>
}
@if (sound.Depth != null ||
sound.Frequency != null)
{
<tr>
<td>@L["Sample rate"]</td>
<td>
<table>
@if (sound.Depth != null &&
sound.Frequency != null)
{
<tr>
<td>
@if (sound.Frequency > 1000)
{
@string.Format(L["{0} bits at {1} KHz"], sound.Depth, sound.Frequency / 1000)
}
else
{
@string.Format(L["{0} bits at {1} Hz"], sound.Depth, sound.Frequency)
}
</td>
</tr>
}
else if (sound.Depth != null)
{
<tr>
<td>@string.Format(L["{0} bits"], sound.Depth)</td>
</tr>
}
else
{
<tr>
<td>
@if (sound.Frequency > 1000)
{
@string.Format(L["{0} KHz"], sound.Frequency / 1000)
}
else
{
@string.Format(L["{0} Hz"], sound.Frequency)
}
</td>
</tr>
}
</table>
</td>
</tr>
}
@if (sound.Type != null)
{
<tr>
<td>@L["Synthesizer type"]</td>
<td>
@sound.Type
</td>
</tr>
}
</table>
</CollapseBody>
</Collapse>
</td>
}
</tr>
counter++;
}
</table>
</td>
</tr>
}
2020-05-22 03:35:50 +01:00
@if (_machine.Storage.Count > 0)
2018-04-14 07:13:11 +01:00
{
<tr>
<th scope=row>
<div align=right>
@L["Storage"]
2018-04-14 07:13:11 +01:00
</div>
</th>
<td>
<table>
2020-05-22 03:35:50 +01:00
@foreach (var storage in _machine.Storage)
2018-04-14 07:13:11 +01:00
{
string capString = null;
2018-04-14 07:13:11 +01:00
if (storage.Capacity != null)
2018-04-14 07:13:11 +01:00
{
2020-02-10 22:44:18 +00:00
if (storage.Type == StorageType.CompactCassette)
{
capString = string.Format(L["{0} bps"], storage.Capacity);
2020-02-10 22:44:18 +00:00
}
2018-04-14 07:13:11 +01:00
else
{
2020-02-10 22:44:18 +00:00
if (storage.Capacity > 1073741824)
{
capString = string.Format(L["{0} GiB"], storage.Capacity / 1073741824);
2020-02-10 22:44:18 +00:00
}
else if (storage.Capacity > 1048576)
{
capString = string.Format(L["{0} MiB"], storage.Capacity / 1048576);
2020-02-10 22:44:18 +00:00
}
else if (storage.Capacity > 1024)
{
capString = string.Format(L["{0} KiB"], storage.Capacity / 1024);
2020-02-10 22:44:18 +00:00
}
else if (storage.Capacity > 0)
{
capString = string.Format(L["{0} bytes"], storage.Capacity);
2020-02-10 22:44:18 +00:00
}
else
2020-02-10 22:44:18 +00:00
{
capString = null;
}
2018-04-14 07:13:11 +01:00
}
}
<tr>
2020-02-10 22:44:18 +00:00
@if (storage.Interface != StorageInterface.Unknown)
2018-04-14 07:13:11 +01:00
{
2020-02-10 22:44:18 +00:00
if (storage.Type == StorageType.Empty)
{
<td>@string.Format(L["Available {0} interface."], storage.Interface)</td>
}
else
2018-04-14 07:13:11 +01:00
{
2020-02-10 22:44:18 +00:00
if (capString != null)
2018-04-14 07:13:11 +01:00
{
<td>@string.Format(L["{0} connected thru a {1} interface with a nominal capacity of {2}"], storage.Type, storage.Interface, capString)</td>
2018-04-14 07:13:11 +01:00
}
else
{
<td>@string.Format(L["{0} connected thru a {1} interface"], storage.Type, storage.Interface)</td>
2018-04-14 07:13:11 +01:00
}
}
}
else
{
2020-02-10 22:44:18 +00:00
if (capString != null)
{
<td>@string.Format(L["{0} with a nominal capacity of {1}"], storage.Type, capString)</td>
}
else
{
<td>@storage.Type</td>
}
2018-04-14 07:13:11 +01:00
}
</tr>
2018-04-14 07:13:11 +01:00
}
</table>
</td>
2018-04-14 07:13:11 +01:00
</tr>
}
</table>
2020-05-22 03:35:50 +01:00
@if (File.Exists(Path.Combine(Host.WebRootPath, "assets/photos/computers", _machine.Id + ".jpg")))
2018-04-14 07:13:11 +01:00
{
2020-05-22 03:35:50 +01:00
<img src="@Path.Combine("/assets/photos/computers", _machine.Id + ".jpg")" alt="">
}
<style>
.card {
border: none;
}
.card-header {
padding: 0;
margin-bottom: 0;
background-color: unset;
border-bottom: none;
}
.card-body {
padding: unset;
}
</style>