2018-04-14 07:13:11 +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 : Index.cshtml
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Index page (and news)
|
|
|
|
|
//
|
|
|
|
|
// --[ 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
|
|
|
*******************************************************************************/
|
2018-04-28 18:39:09 +01:00
|
|
|
// TODO: Resolutions
|
2018-04-14 07:13:11 +01:00
|
|
|
ViewData["Title"] = "Computer";
|
|
|
|
|
}
|
|
|
|
|
@using System.IO
|
2020-02-10 02:10:18 +00:00
|
|
|
@using Marechai.Database
|
|
|
|
|
@model Marechai.Database.Models.Machine
|
2018-08-06 21:07:23 +01:00
|
|
|
<p align="center">
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Company.LastLogo != null &&
|
|
|
|
|
File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/logos", Model.Company.LastLogo.Guid + ".svg")))
|
2018-04-20 19:17:59 +01:00
|
|
|
{
|
|
|
|
|
<picture>
|
2020-02-10 22:44:18 +00:00
|
|
|
<source type="image/svg+xml" srcset="/assets/logos/@(Model.Company.LastLogo.Guid).svg">
|
|
|
|
|
<source type="image/webp" srcset="/assets/logos/webp/1x/@(Model.Company.LastLogo.Guid).webp,
|
2019-05-29 00:11:36 +01:00
|
|
|
/assets/logos/webp/2x/@(Model.Company.LastLogo.Guid).webp 2x,
|
|
|
|
|
/assets/logos/webp/3x/@(Model.Company.LastLogo.Guid).webp 3x">
|
2018-04-20 19:17:59 +01:00
|
|
|
<img srcset="/assets/logos/png/1x/@(Model.Company.LastLogo.Guid).png,
|
2019-05-29 00:11:36 +01:00
|
|
|
/assets/logos/png/2x/@(Model.Company.LastLogo.Guid).png 2x,
|
2020-05-21 23:32:21 +01:00
|
|
|
/assets/logos/png/3x/@(Model.Company.LastLogo.Guid).png 3x" src="/assets/logos/png/1x/@(Model.Company.LastLogo.Guid).png" alt="" height="auto" width="auto" style="max-height: 256px; max-width: 256px" />
|
2018-04-20 19:17:59 +01:00
|
|
|
</picture>
|
|
|
|
|
}
|
|
|
|
|
</p>
|
2020-02-10 22:44:18 +00:00
|
|
|
@{ var counter = 0; }
|
2018-08-06 23:24:00 +01:00
|
|
|
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Introduced.HasValue &&
|
|
|
|
|
Model.Introduced.Value.Year == 1000)
|
2018-04-14 07:13:11 +01:00
|
|
|
{
|
|
|
|
|
<b>
|
2018-04-22 03:51:36 +01:00
|
|
|
<div style="text-align: center;">PROTOTYPE</div>
|
2018-04-14 07:13:11 +01:00
|
|
|
</b>
|
|
|
|
|
}
|
2018-04-22 03:51:36 +01:00
|
|
|
<b>
|
2020-02-10 22:44:18 +00:00
|
|
|
<a asp-controller="Company" asp-action="View" asp-route-id="@Model.Company.Id">
|
2018-04-29 02:02:33 +01:00
|
|
|
@Model.Company.Name</a> @Model.Name</b>
|
2018-08-06 21:07:23 +01:00
|
|
|
<table width="100%">
|
2018-04-14 07:13:11 +01:00
|
|
|
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Introduced.HasValue &&
|
|
|
|
|
Model.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>
|
2018-04-28 21:29:01 +01:00
|
|
|
Introduction date
|
2018-04-14 07:13:11 +01:00
|
|
|
</div>
|
|
|
|
|
</th>
|
|
|
|
|
<td width="63%">
|
2020-02-10 22:44:18 +00:00
|
|
|
<a asp-controller="Computer" asp-action="ByYear" asp-route-id="@Model.Introduced.Value.Year">
|
2018-08-06 23:24:00 +01:00
|
|
|
@Model.Introduced.Value.ToLongDateString()</a>
|
2018-04-14 07:13:11 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Family != null)
|
2018-04-29 02:02:33 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2020-02-10 22:44:18 +00:00
|
|
|
<th scope=row width="37%">
|
2018-04-29 02:02:33 +01:00
|
|
|
<div align=right>
|
|
|
|
|
Family
|
|
|
|
|
</div>
|
|
|
|
|
</th>
|
|
|
|
|
<td width="63%">
|
2020-02-10 22:44:18 +00:00
|
|
|
<a asp-controller="Computer" asp-action="ByFamily" asp-route-id="@Model.Family.Id">
|
2018-04-29 02:02:33 +01:00
|
|
|
@Model.Family.Name</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Model != null)
|
2018-04-29 02:02:33 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2020-02-10 22:44:18 +00:00
|
|
|
<th scope=row width="37%">
|
2018-04-29 02:02:33 +01:00
|
|
|
<div align=right>
|
|
|
|
|
Model
|
|
|
|
|
</div>
|
|
|
|
|
</th>
|
|
|
|
|
<td width="63%">
|
|
|
|
|
@Model.Model
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Processors.Count > 0)
|
2018-04-14 07:13:11 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2018-04-22 03:51:36 +01:00
|
|
|
<th scope=row>
|
|
|
|
|
<div align=right>
|
2018-04-28 13:16:53 +01:00
|
|
|
Processors
|
2018-04-22 03:51:36 +01:00
|
|
|
</div>
|
|
|
|
|
</th>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
2018-08-06 23:24:00 +01:00
|
|
|
@{ counter = 0; }
|
2020-02-10 22:44:18 +00:00
|
|
|
@foreach (var processorByMachine in Model.Processors)
|
2018-04-22 03:51:36 +01:00
|
|
|
{
|
2018-08-06 23:24:00 +01:00
|
|
|
<tr>
|
|
|
|
|
<td>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Speed > 0)
|
|
|
|
|
{
|
|
|
|
|
@(processorByMachine.Processor.GprSize > 0 ? $"{processorByMachine.Processor.Name} @ {processorByMachine.Speed}Mhz ({processorByMachine.Processor.GprSize} bits)" : $"{processorByMachine.Processor.Name} @ {processorByMachine.Speed}Mhz")
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
else
|
2020-02-10 22:44:18 +00:00
|
|
|
{
|
|
|
|
|
@($"{processorByMachine.Processor.Name}")
|
|
|
|
|
}
|
|
|
|
|
<a aria-controls="@($"cpuInfo{counter}")" aria-expanded="false" class="btn btn-link" data-toggle="collapse" href="@($"#cpuInfo{counter}")">
|
2018-08-06 23:24:00 +01:00
|
|
|
+info
|
|
|
|
|
</a>
|
2020-02-10 22:44:18 +00:00
|
|
|
<div class="collapse" id="@($"cpuInfo{counter}")">
|
2018-08-06 23:24:00 +01:00
|
|
|
<div class="card card-body">
|
|
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.ModelCode != null &&
|
|
|
|
|
processorByMachine.Processor.ModelCode != processorByMachine.Processor.Name)
|
2018-04-28 13:16:53 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>Model</td>
|
|
|
|
|
<td>@processorByMachine.Processor.ModelCode</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Manufacturer</td>
|
2018-04-22 03:51:36 +01:00
|
|
|
<td>
|
2020-02-10 22:44:18 +00:00
|
|
|
<a asp-controller=Company asp-action=View asp-route-id=@processorByMachine.Processor.Company.Id>
|
2018-08-06 23:24:00 +01:00
|
|
|
@processorByMachine.Processor.Company.Name</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Introduced != DateTime.MinValue)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Introduction date</td>
|
|
|
|
|
<td>@($"{processorByMachine.Processor.Introduced:yyyy}")</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.InstructionSet != null)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
2018-04-28 13:16:53 +01:00
|
|
|
<tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>Instruction set</td>
|
|
|
|
|
<td>@processorByMachine.Processor.InstructionSet.Name</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Speed > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Nominal speed</td>
|
|
|
|
|
<td>@processorByMachine.Processor.Speed MHz</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Gprs > 0 ||
|
|
|
|
|
processorByMachine.Processor.Fprs > 0 ||
|
|
|
|
|
processorByMachine.Processor.SimdRegisters > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Registers</td>
|
2018-04-28 13:16:53 +01:00
|
|
|
<td>
|
2018-08-06 23:24:00 +01:00
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Gprs > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@processorByMachine.Processor.Gprs general purpose registers of @processorByMachine.Processor.GprSize bits
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.FprSize > 0 &&
|
|
|
|
|
processorByMachine.Processor.Fprs == 0)
|
|
|
|
|
{
|
|
|
|
|
@($", that can be used as floating point registers of {processorByMachine.Processor.FprSize}")
|
|
|
|
|
}
|
|
|
|
|
@if (processorByMachine.Processor.SimdSize > 0 &&
|
|
|
|
|
processorByMachine.Processor.SimdRegisters == 0)
|
|
|
|
|
{
|
|
|
|
|
@($", that can be used as SIMD registers of {processorByMachine.Processor.FprSize}")
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Fprs > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@processorByMachine.Processor.Fprs floating-point registers of @processorByMachine.Processor.FprSize bits
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.SimdSize > 0 &&
|
|
|
|
|
processorByMachine.Processor.SimdRegisters == 0)
|
|
|
|
|
{
|
|
|
|
|
@($", that can be used as SIMD registers of {processorByMachine.Processor.FprSize}")
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.SimdRegisters > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
2020-02-10 22:44:18 +00:00
|
|
|
@processorByMachine.Processor.SimdRegisters
|
|
|
|
|
<abbr title="Single instruction, multiple data">SIMD</abbr>registers of @processorByMachine.Processor.SimdSize bits
|
2018-08-06 23:24:00 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
2018-04-28 13:16:53 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Cores > 1)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Multi-core</td>
|
|
|
|
|
<td>@processorByMachine.Processor.Cores cores</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Cores > 1)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
<abbr title="Simultanoeus multithreading">SMT</abbr>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
@processorByMachine.Processor.ThreadsPerCore threads
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Cores > 1)
|
|
|
|
|
{
|
|
|
|
|
@(" per core")
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.DataBus > 0 ||
|
|
|
|
|
processorByMachine.Processor.AddrBus > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Bus</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.DataBus > 0)
|
2018-04-28 13:16:53 +01:00
|
|
|
{
|
2018-08-06 23:24:00 +01:00
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@processorByMachine.Processor.DataBus-bit data
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2018-04-28 13:16:53 +01:00
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.AddrBus > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@processorByMachine.Processor.AddrBus-bit address
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2018-04-28 13:16:53 +01:00
|
|
|
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.L1Instruction > 0 ||
|
|
|
|
|
processorByMachine.Processor.L1Data > 0 ||
|
|
|
|
|
processorByMachine.Processor.L2 > 0 ||
|
|
|
|
|
processorByMachine.Processor.L2 > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Cache</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.L1Instruction > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@(processorByMachine.Processor.L1Data < 0 ? $"{processorByMachine.Processor.L1Instruction}KiB combined instruction-data L1" : $"{processorByMachine.Processor.L1Instruction}KiB instruction L1")
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.L1Data > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@($"{processorByMachine.Processor.L1Data}KiB data L1")
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.L2 > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@($"{processorByMachine.Processor.L2}KiB L2")
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.L3 > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@($"{processorByMachine.Processor.L3}KiB L3")
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Package != null)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Package</td>
|
|
|
|
|
<td>@processorByMachine.Processor.Package</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Process != null ||
|
|
|
|
|
processorByMachine.Processor.ProcessNm > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Manufacturing process</td>
|
|
|
|
|
<td>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Process != null &&
|
|
|
|
|
processorByMachine.Processor.ProcessNm > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
@processorByMachine.Processor.Process
|
|
|
|
|
@("@")
|
|
|
|
|
@(processorByMachine.Processor.ProcessNm > 100 ? $"{processorByMachine.Processor.ProcessNm / 100}µm" : $"{processorByMachine.Processor.ProcessNm}nm")
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
else if (processorByMachine.Processor.ProcessNm > 0)
|
|
|
|
|
{
|
|
|
|
|
@(processorByMachine.Processor.ProcessNm > 100 ? $"{processorByMachine.Processor.ProcessNm / 100}µm" : $"{processorByMachine.Processor.ProcessNm}nm")
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
else
|
2020-02-10 22:44:18 +00:00
|
|
|
{
|
|
|
|
|
@processorByMachine.Processor.Process
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.DieSize > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Die size</td>
|
|
|
|
|
<td>@processorByMachine.Processor.DieSize mm²</td>
|
2018-04-28 13:16:53 +01:00
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (processorByMachine.Processor.Transistors > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Transistors</td>
|
|
|
|
|
<td>@processorByMachine.Processor.Transistors</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
counter++;
|
2018-04-22 03:51:36 +01:00
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
2018-04-14 07:13:11 +01:00
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Memory != null &&
|
|
|
|
|
Model.Memory.Count > 0)
|
2018-04-28 17:27:35 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope=row>
|
|
|
|
|
<div align=right>
|
|
|
|
|
Memory
|
|
|
|
|
</div>
|
|
|
|
|
</th>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@foreach (var memory in Model.Memory)
|
2018-04-28 17:27:35 +01:00
|
|
|
{
|
|
|
|
|
string memValue;
|
2020-02-10 22:44:18 +00:00
|
|
|
if (memory.Size > 1073741824)
|
|
|
|
|
{
|
|
|
|
|
memValue = $"{memory.Size / 1073741824} GiB";
|
|
|
|
|
}
|
|
|
|
|
else if (memory.Size > 1048576)
|
|
|
|
|
{
|
|
|
|
|
memValue = $"{memory.Size / 1048576} MiB";
|
|
|
|
|
}
|
|
|
|
|
else if (memory.Size > 1024)
|
|
|
|
|
{
|
|
|
|
|
memValue = $"{memory.Size / 1024} KiB";
|
|
|
|
|
}
|
|
|
|
|
else if (memory.Size > 0)
|
|
|
|
|
{
|
|
|
|
|
memValue = $"{memory.Size} bytes";
|
|
|
|
|
}
|
2018-04-28 17:27:35 +01:00
|
|
|
else
|
2020-02-10 22:44:18 +00:00
|
|
|
{
|
|
|
|
|
memValue = "Unknown size";
|
|
|
|
|
}
|
2018-04-28 17:27:35 +01:00
|
|
|
|
|
|
|
|
string speedValue;
|
2020-02-10 22:44:18 +00:00
|
|
|
if (memory.Speed > 1000000000)
|
|
|
|
|
{
|
|
|
|
|
speedValue = $"{memory.Speed / 1000000000} GHz";
|
|
|
|
|
}
|
|
|
|
|
else if (memory.Speed > 1000000)
|
|
|
|
|
{
|
|
|
|
|
speedValue = $"{memory.Speed / 1000000} MHz";
|
|
|
|
|
}
|
|
|
|
|
else if (memory.Speed > 1000)
|
|
|
|
|
{
|
|
|
|
|
speedValue = $"{memory.Speed / 1000} KHz";
|
|
|
|
|
}
|
|
|
|
|
else if (memory.Speed > 0)
|
|
|
|
|
{
|
|
|
|
|
speedValue = $"{memory.Speed} Hz";
|
|
|
|
|
}
|
2018-04-28 17:27:35 +01:00
|
|
|
else
|
2020-02-10 22:44:18 +00:00
|
|
|
{
|
|
|
|
|
speedValue = "unknown speed";
|
|
|
|
|
}
|
2018-04-28 17:27:35 +01:00
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@memValue of @memory.Usage memory (@memory.Type at @speedValue)</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Gpus.Count > 0)
|
2018-04-27 15:29:53 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope=row>
|
|
|
|
|
<div align=right>
|
2018-04-28 14:39:21 +01:00
|
|
|
Graphics processing units
|
2018-04-27 15:29:53 +01:00
|
|
|
</div>
|
|
|
|
|
</th>
|
2018-04-28 14:39:21 +01:00
|
|
|
<td>
|
|
|
|
|
<table>
|
2018-08-06 23:24:00 +01:00
|
|
|
@{ counter = 0; }
|
2020-02-10 22:44:18 +00:00
|
|
|
@foreach (var gpuByMachine in Model.Gpus)
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
2020-02-10 22:44:18 +00:00
|
|
|
if (gpuByMachine.Gpu.Id == -2)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<td>
|
|
|
|
|
Framebuffer
|
2020-02-10 22:44:18 +00:00
|
|
|
<a aria-controls="@($"gpuInfo{counter}")" aria-expanded="false" class="btn btn-link" data-toggle="collapse" href="@($"#gpuInfo{counter}")">
|
2018-08-06 23:24:00 +01:00
|
|
|
+info
|
|
|
|
|
</a>
|
2020-02-10 22:44:18 +00:00
|
|
|
<div class="collapse" id="@($"gpuInfo{counter}")">
|
2018-08-06 23:24:00 +01:00
|
|
|
<div class="card card-body">
|
2020-02-10 22:44:18 +00:00
|
|
|
This computer directly draws pixels from software to a memory region that's converted to video output by a
|
|
|
|
|
<abbr title="Digital to Analog Converter">DAC</abbr> or similar without using any specific graphics processing unit.
|
2018-08-06 23:24:00 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
}
|
|
|
|
|
else
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>
|
|
|
|
|
@($"{gpuByMachine.Gpu.Name}")
|
2020-02-10 22:44:18 +00:00
|
|
|
<a aria-controls="@($"gpuInfo{counter}")" aria-expanded="false" class="btn btn-link" data-toggle="collapse" href="@($"#gpuInfo{counter}")">
|
2018-08-06 23:24:00 +01:00
|
|
|
+info
|
|
|
|
|
</a>
|
2020-02-10 22:44:18 +00:00
|
|
|
<div class="collapse" id="@($"gpuInfo{counter}")">
|
2018-08-06 23:24:00 +01:00
|
|
|
<div class="card card-body">
|
|
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (gpuByMachine.Gpu.ModelCode != null &&
|
|
|
|
|
gpuByMachine.Gpu.ModelCode != gpuByMachine.Gpu.Name)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Model</td>
|
|
|
|
|
<td>@gpuByMachine.Gpu.ModelCode</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Manufacturer</td>
|
|
|
|
|
<td>
|
2020-02-10 22:44:18 +00:00
|
|
|
<a asp-controller=Company asp-action=View asp-route-id=@gpuByMachine.Gpu.Company.Id>
|
2018-08-06 23:24:00 +01:00
|
|
|
@gpuByMachine.Gpu.Company.Name</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (gpuByMachine.Gpu.Introduced != DateTime.MinValue)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Introduction date</td>
|
|
|
|
|
<td>@($"{gpuByMachine.Gpu.Introduced:yyyy}")</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (gpuByMachine.Gpu.Package != null)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Package</td>
|
|
|
|
|
<td>@gpuByMachine.Gpu.Package</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (gpuByMachine.Gpu.Process != null ||
|
|
|
|
|
gpuByMachine.Gpu.ProcessNm > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Manufacturing process</td>
|
|
|
|
|
<td>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (gpuByMachine.Gpu.Process != null &&
|
|
|
|
|
gpuByMachine.Gpu.ProcessNm > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
@gpuByMachine.Gpu.Process
|
|
|
|
|
@("@")
|
|
|
|
|
@(gpuByMachine.Gpu.ProcessNm > 100 ? $"{gpuByMachine.Gpu.ProcessNm / 100}µm" : $"{gpuByMachine.Gpu.ProcessNm}nm")
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
else if (gpuByMachine.Gpu.ProcessNm > 0)
|
|
|
|
|
{
|
|
|
|
|
@(gpuByMachine.Gpu.ProcessNm > 100 ? $"{gpuByMachine.Gpu.ProcessNm / 100}µm" : $"{gpuByMachine.Gpu.ProcessNm}nm")
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
else
|
2020-02-10 22:44:18 +00:00
|
|
|
{
|
|
|
|
|
@gpuByMachine.Gpu.Process
|
|
|
|
|
}
|
2018-08-06 23:24:00 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (gpuByMachine.Gpu.DieSize > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Die size</td>
|
|
|
|
|
<td>@gpuByMachine.Gpu.DieSize mm²</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (gpuByMachine.Gpu.Transistors > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Transistors</td>
|
|
|
|
|
<td>@gpuByMachine.Gpu.Transistors</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
}
|
|
|
|
|
counter++;
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Sound.Count > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope=row>
|
|
|
|
|
<div align=right>
|
|
|
|
|
Sound synthetizers
|
|
|
|
|
</div>
|
|
|
|
|
</th>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
|
|
|
|
@{ counter = 0; }
|
2020-02-10 22:44:18 +00:00
|
|
|
@foreach (var soundByMachine in Model.Sound)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Id == -2)
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
|
|
|
|
<td>
|
2018-08-06 23:24:00 +01:00
|
|
|
Software
|
2020-02-10 22:44:18 +00:00
|
|
|
<a aria-controls="@($"synthInfo{counter}")" aria-expanded="false" class="btn btn-link" data-toggle="collapse" href="@($"#synthInfo{counter}")">
|
2018-04-28 14:39:21 +01:00
|
|
|
+info
|
|
|
|
|
</a>
|
2020-02-10 22:44:18 +00:00
|
|
|
<div class="collapse" id="@($"synthInfo{counter}")">
|
2018-04-28 14:39:21 +01:00
|
|
|
<div class="card card-body">
|
2020-02-10 22:44:18 +00:00
|
|
|
This computer directly sends data to a
|
|
|
|
|
<abbr title="Digital to Analog Converter">DAC</abbr> or similar connected to the audio output.
|
2018-04-28 14:39:21 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<td>
|
2018-08-06 23:24:00 +01:00
|
|
|
@($"{soundByMachine.SoundSynth.Name}")
|
2020-02-10 22:44:18 +00:00
|
|
|
<a aria-controls="@($"synthInfo{counter}")" aria-expanded="false" class="btn btn-link" data-toggle="collapse" href="@($"#synthInfo{counter}")">
|
2018-04-28 14:39:21 +01:00
|
|
|
+info
|
|
|
|
|
</a>
|
2020-02-10 22:44:18 +00:00
|
|
|
<div class="collapse" id="@($"synthInfo{counter}")">
|
2018-04-28 14:39:21 +01:00
|
|
|
<div class="card card-body">
|
|
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.ModelCode != null &&
|
|
|
|
|
soundByMachine.SoundSynth.ModelCode != soundByMachine.SoundSynth.Name)
|
2018-04-27 15:29:53 +01:00
|
|
|
{
|
2018-04-28 14:39:21 +01:00
|
|
|
<tr>
|
|
|
|
|
<td>Model</td>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>@soundByMachine.SoundSynth.ModelCode</td>
|
2018-04-28 14:39:21 +01:00
|
|
|
</tr>
|
2018-04-27 15:29:53 +01:00
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Company != null)
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>Manufacturer</td>
|
|
|
|
|
<td>
|
2020-02-10 22:44:18 +00:00
|
|
|
<a asp-controller=Company asp-action=View asp-route-id=@soundByMachine.SoundSynth.Company.Id>
|
2018-08-06 23:24:00 +01:00
|
|
|
@soundByMachine.SoundSynth.Company.Name</a>
|
|
|
|
|
</td>
|
2018-04-28 14:39:21 +01:00
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Introduced != DateTime.MinValue)
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>Introduction date</td>
|
|
|
|
|
<td>@($"{soundByMachine.SoundSynth.Introduced:yyyy}")</td>
|
2018-04-28 14:39:21 +01:00
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Voices != 0 ||
|
|
|
|
|
soundByMachine.SoundSynth.SquareWave != 0 ||
|
|
|
|
|
soundByMachine.SoundSynth.WhiteNoise != 0)
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>Generators</td>
|
2018-04-28 14:39:21 +01:00
|
|
|
<td>
|
2018-08-06 23:24:00 +01:00
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Voices != 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@soundByMachine.SoundSynth.Voices voices</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.SquareWave != 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@soundByMachine.SoundSynth.SquareWave square wave</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.WhiteNoise != 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@soundByMachine.SoundSynth.WhiteNoise white noise</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
2018-04-28 14:39:21 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Depth != 0 ||
|
|
|
|
|
soundByMachine.SoundSynth.Frequency > 0)
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>Sample rate</td>
|
|
|
|
|
<td>
|
|
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Depth != 0 &&
|
|
|
|
|
soundByMachine.SoundSynth.Frequency > 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@soundByMachine.SoundSynth.Depth bits at @(soundByMachine.SoundSynth.Frequency > 1000 ? $"{soundByMachine.SoundSynth.Frequency / 1000}KHz" : $"{soundByMachine.SoundSynth.Frequency}Hz")</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
else if (soundByMachine.SoundSynth.Depth != 0)
|
2018-08-06 23:24:00 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@soundByMachine.SoundSynth.Depth bits</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>@(soundByMachine.SoundSynth.Frequency > 1000 ? $"{soundByMachine.SoundSynth.Frequency / 1000}KHz" : $"{soundByMachine.SoundSynth.Frequency}Hz")</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
2018-04-28 14:39:21 +01:00
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (soundByMachine.SoundSynth.Type != 0)
|
2018-04-28 14:39:21 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
<td>Synthetizer type</td>
|
|
|
|
|
<td>
|
|
|
|
|
@soundByMachine.SoundSynth.Type
|
|
|
|
|
</td>
|
2018-04-28 14:39:21 +01:00
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
}
|
2018-04-29 02:02:33 +01:00
|
|
|
</tr>
|
2018-08-06 23:24:00 +01:00
|
|
|
counter++;
|
2018-04-28 15:55:57 +01:00
|
|
|
}
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (Model.Storage.Count > 0)
|
2018-04-14 07:13:11 +01:00
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<th scope=row>
|
|
|
|
|
<div align=right>
|
2018-04-28 20:52:58 +01:00
|
|
|
Storage
|
2018-04-14 07:13:11 +01:00
|
|
|
</div>
|
|
|
|
|
</th>
|
|
|
|
|
<td>
|
2018-04-28 20:52:58 +01:00
|
|
|
<table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@foreach (var storage in Model.Storage)
|
2018-04-14 07:13:11 +01:00
|
|
|
{
|
2018-04-28 20:52:58 +01:00
|
|
|
string capString = null;
|
2018-04-14 07:13:11 +01:00
|
|
|
|
2020-02-10 22:44:18 +00:00
|
|
|
if (storage.Capacity != 0)
|
2018-04-14 07:13:11 +01:00
|
|
|
{
|
2020-02-10 22:44:18 +00:00
|
|
|
if (storage.Type == StorageType.CompactCassette)
|
|
|
|
|
{
|
|
|
|
|
capString = $"{storage.Capacity} bps";
|
|
|
|
|
}
|
2018-04-14 07:13:11 +01:00
|
|
|
else
|
|
|
|
|
{
|
2020-02-10 22:44:18 +00:00
|
|
|
if (storage.Capacity > 1073741824)
|
|
|
|
|
{
|
|
|
|
|
capString = $"{storage.Capacity / 1073741824} GiB";
|
|
|
|
|
}
|
|
|
|
|
else if (storage.Capacity > 1048576)
|
|
|
|
|
{
|
|
|
|
|
capString = $"{storage.Capacity / 1048576} MiB";
|
|
|
|
|
}
|
|
|
|
|
else if (storage.Capacity > 1024)
|
|
|
|
|
{
|
|
|
|
|
capString = $"{storage.Capacity / 1024} KiB";
|
|
|
|
|
}
|
|
|
|
|
else if (storage.Capacity > 0)
|
|
|
|
|
{
|
|
|
|
|
capString = $"{storage.Capacity} bytes";
|
|
|
|
|
}
|
2018-04-28 20:52:58 +01:00
|
|
|
else
|
2020-02-10 22:44:18 +00:00
|
|
|
{
|
|
|
|
|
capString = null;
|
|
|
|
|
}
|
2018-04-14 07:13:11 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-28 20:52:58 +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)
|
2018-04-28 20:52:58 +01:00
|
|
|
{
|
|
|
|
|
<td>Available @storage.Interface 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
|
|
|
{
|
2018-04-28 20:52:58 +01:00
|
|
|
<td>@storage.Type connected thru a @storage.Interface interface with a nominal capacity of @capString</td>
|
2018-04-14 07:13:11 +01:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2018-04-28 20:52:58 +01:00
|
|
|
<td>@storage.Type connected thru a @storage.Interface interface</td>
|
2018-04-14 07:13:11 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2020-02-10 22:44:18 +00:00
|
|
|
if (capString != null)
|
2018-04-28 20:52:58 +01:00
|
|
|
{
|
|
|
|
|
<td>@storage.Type with a nominal capacity of @capString</td>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<td>@storage.Type</td>
|
|
|
|
|
}
|
2018-04-14 07:13:11 +01:00
|
|
|
}
|
2018-04-28 20:52:58 +01:00
|
|
|
</tr>
|
2018-04-14 07:13:11 +01:00
|
|
|
}
|
2018-04-28 20:52:58 +01:00
|
|
|
</table>
|
|
|
|
|
</td>
|
2018-04-14 07:13:11 +01:00
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</table>
|
2020-02-10 22:44:18 +00:00
|
|
|
@if (File.Exists(System.IO.Path.Combine(ViewBag.WebRootPath, "assets/photos/computers", Model.Id + ".jpg")))
|
2018-04-14 07:13:11 +01:00
|
|
|
{
|
2020-02-10 22:44:18 +00:00
|
|
|
<img src="@System.IO.Path.Combine("/assets/photos/computers", Model.Id + ".jpg")" alt="">
|
2018-04-14 07:13:11 +01:00
|
|
|
}
|