mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Update view to DB version 12.
This commit is contained in:
@@ -54,7 +54,7 @@ namespace cicm_web.Models
|
|||||||
: new Gpu
|
: new Gpu
|
||||||
{
|
{
|
||||||
Name = dbItem.Name,
|
Name = dbItem.Name,
|
||||||
Company = Company.GetItem(dbItem.Company.Id),
|
Company = dbItem.Company == null ? null : Company.GetItem(dbItem.Company.Id),
|
||||||
DieSize = dbItem.DieSize,
|
DieSize = dbItem.DieSize,
|
||||||
Introduced = dbItem.Introduced,
|
Introduced = dbItem.Introduced,
|
||||||
ModelCode = dbItem.ModelCode,
|
ModelCode = dbItem.ModelCode,
|
||||||
@@ -78,7 +78,7 @@ namespace cicm_web.Models
|
|||||||
items.Add(new Gpu
|
items.Add(new Gpu
|
||||||
{
|
{
|
||||||
Name = dbItem.Name,
|
Name = dbItem.Name,
|
||||||
Company = Company.GetItem(dbItem.Company.Id),
|
Company = dbItem.Company == null ? null : Company.GetItem(dbItem.Company.Id),
|
||||||
DieSize = dbItem.DieSize,
|
DieSize = dbItem.DieSize,
|
||||||
Introduced = dbItem.Introduced,
|
Introduced = dbItem.Introduced,
|
||||||
ModelCode = dbItem.ModelCode,
|
ModelCode = dbItem.ModelCode,
|
||||||
|
|||||||
@@ -608,27 +608,124 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
@if(Model.Gpu == null || Model.Gpu != null && Model.Gpu.Id != -1)
|
||||||
<th scope=row>
|
{
|
||||||
<div align=right>
|
<tr>
|
||||||
Graphics processor
|
<th scope=row>
|
||||||
</div>
|
<div align=right>
|
||||||
</th>
|
Graphics processor
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
|
||||||
@if(Model.Gpu.Id > 1)
|
@if(Model.Gpu != null)
|
||||||
{
|
|
||||||
if(Model.Gpu.Id > 2)
|
|
||||||
{
|
{
|
||||||
<td>@Model.Gpu.Name</td>
|
if(Model.Gpu.Id == -2)
|
||||||
|
{
|
||||||
|
<td>
|
||||||
|
Framebuffer
|
||||||
|
<a aria-controls="gpuInfo"
|
||||||
|
aria-expanded="false"
|
||||||
|
class="btn btn-link"
|
||||||
|
data-toggle="collapse"
|
||||||
|
href="#gpuInfo">
|
||||||
|
+info
|
||||||
|
</a>
|
||||||
|
<div class="collapse"
|
||||||
|
id="gpuInfo">
|
||||||
|
<div class="card card-body">
|
||||||
|
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.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<td>
|
||||||
|
@($"{Model.Gpu.Name}")
|
||||||
|
<a aria-controls="gpuInfo"
|
||||||
|
aria-expanded="false"
|
||||||
|
class="btn btn-link"
|
||||||
|
data-toggle="collapse"
|
||||||
|
href="#gpuInfo">
|
||||||
|
+info
|
||||||
|
</a>
|
||||||
|
<div class="collapse"
|
||||||
|
id="gpuInfo">
|
||||||
|
<div class="card card-body">
|
||||||
|
<table>
|
||||||
|
@if(Model.Gpu.ModelCode != null && Model.Gpu.ModelCode != Model.Gpu.Name)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Model</td>
|
||||||
|
<td>@Model.Gpu.ModelCode</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
<tr>
|
||||||
|
<td>Manufacturer</td>
|
||||||
|
<td>
|
||||||
|
<a asp-controller=Company
|
||||||
|
asp-action=View
|
||||||
|
asp-route-id=@Model.Gpu.Company.Id>
|
||||||
|
@Model.Gpu.Company.Name</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@if(Model.Gpu.Introduced != DateTime.MinValue)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Introduction date</td>
|
||||||
|
<td>@($"{Model.Gpu.Introduced:yyyy}")</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.Package != null)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Package</td>
|
||||||
|
<td>@Model.Gpu.Package</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.Process != null || Model.Gpu.ProcessNm > 0)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Manufacturing process</td>
|
||||||
|
<td>
|
||||||
|
@if(Model.Gpu.Process != null && Model.Gpu.ProcessNm > 0)
|
||||||
|
{
|
||||||
|
@Model.Gpu.Process
|
||||||
|
@("@")
|
||||||
|
@(Model.Gpu.ProcessNm > 100 ? $"{Model.Gpu.ProcessNm / 100}µm" : $"{Model.Gpu.ProcessNm}nm")
|
||||||
|
}
|
||||||
|
else if(Model.Gpu.ProcessNm > 0) { @(Model.Gpu.ProcessNm > 100 ? $"{Model.Gpu.ProcessNm / 100}µm" : $"{Model.Gpu.ProcessNm}nm") }
|
||||||
|
else
|
||||||
|
{ @Model.Gpu.Process }
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.DieSize > 0)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Die size</td>
|
||||||
|
<td>@Model.Gpu.DieSize mm²</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.Transistors > 0)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Transistors</td>
|
||||||
|
<td>@Model.Gpu.Transistors</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<td>Unknown data</td>
|
<td>Unknown data</td>
|
||||||
}
|
}
|
||||||
}
|
</tr>
|
||||||
else
|
}
|
||||||
{ <td>None</td> }
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope=row>
|
<th scope=row>
|
||||||
<div align=right>
|
<div align=right>
|
||||||
|
|||||||
@@ -600,27 +600,124 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
@if(Model.Gpu == null || Model.Gpu != null && Model.Gpu.Id != -1)
|
||||||
<th scope=row>
|
{
|
||||||
<div align=right>
|
<tr>
|
||||||
Graphics processor
|
<th scope=row>
|
||||||
</div>
|
<div align=right>
|
||||||
</th>
|
Graphics processor
|
||||||
|
</div>
|
||||||
|
</th>
|
||||||
|
|
||||||
@if(Model.Gpu.Id > 1)
|
@if(Model.Gpu != null)
|
||||||
{
|
|
||||||
if(Model.Gpu.Id > 2)
|
|
||||||
{
|
{
|
||||||
<td>@Model.Gpu.Name</td>
|
if(Model.Gpu.Id == -2)
|
||||||
|
{
|
||||||
|
<td>
|
||||||
|
Framebuffer
|
||||||
|
<a aria-controls="gpuInfo"
|
||||||
|
aria-expanded="false"
|
||||||
|
class="btn btn-link"
|
||||||
|
data-toggle="collapse"
|
||||||
|
href="#gpuInfo">
|
||||||
|
+info
|
||||||
|
</a>
|
||||||
|
<div class="collapse"
|
||||||
|
id="gpuInfo">
|
||||||
|
<div class="card card-body">
|
||||||
|
This videoconsole 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.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<td>
|
||||||
|
@($"{Model.Gpu.Name}")
|
||||||
|
<a aria-controls="gpuInfo"
|
||||||
|
aria-expanded="false"
|
||||||
|
class="btn btn-link"
|
||||||
|
data-toggle="collapse"
|
||||||
|
href="#gpuInfo">
|
||||||
|
+info
|
||||||
|
</a>
|
||||||
|
<div class="collapse"
|
||||||
|
id="gpuInfo">
|
||||||
|
<div class="card card-body">
|
||||||
|
<table>
|
||||||
|
@if(Model.Gpu.ModelCode != null && Model.Gpu.ModelCode != Model.Gpu.Name)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Model</td>
|
||||||
|
<td>@Model.Gpu.ModelCode</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
<tr>
|
||||||
|
<td>Manufacturer</td>
|
||||||
|
<td>
|
||||||
|
<a asp-controller=Company
|
||||||
|
asp-action=View
|
||||||
|
asp-route-id=@Model.Gpu.Company.Id>
|
||||||
|
@Model.Gpu.Company.Name</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@if(Model.Gpu.Introduced != DateTime.MinValue)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Introduction date</td>
|
||||||
|
<td>@($"{Model.Gpu.Introduced:yyyy}")</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.Package != null)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Package</td>
|
||||||
|
<td>@Model.Gpu.Package</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.Process != null || Model.Gpu.ProcessNm > 0)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Manufacturing process</td>
|
||||||
|
<td>
|
||||||
|
@if(Model.Gpu.Process != null && Model.Gpu.ProcessNm > 0)
|
||||||
|
{
|
||||||
|
@Model.Gpu.Process
|
||||||
|
@("@")
|
||||||
|
@(Model.Gpu.ProcessNm > 100 ? $"{Model.Gpu.ProcessNm / 100}µm" : $"{Model.Gpu.ProcessNm}nm")
|
||||||
|
}
|
||||||
|
else if(Model.Gpu.ProcessNm > 0) { @(Model.Gpu.ProcessNm > 100 ? $"{Model.Gpu.ProcessNm / 100}µm" : $"{Model.Gpu.ProcessNm}nm") }
|
||||||
|
else
|
||||||
|
{ @Model.Gpu.Process }
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.DieSize > 0)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Die size</td>
|
||||||
|
<td>@Model.Gpu.DieSize mm²</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
@if(Model.Gpu.Transistors > 0)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>Transistors</td>
|
||||||
|
<td>@Model.Gpu.Transistors</td>
|
||||||
|
</tr>
|
||||||
|
}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
<td>Unknown data</td>
|
<td>Unknown data</td>
|
||||||
}
|
}
|
||||||
}
|
</tr>
|
||||||
else
|
}
|
||||||
{ <td>None</td> }
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope=row>
|
<th scope=row>
|
||||||
<div align=right>
|
<div align=right>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
<Version>3.0.99.186</Version>
|
<Version>3.0.99.189</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