mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix link to search of machines by year from machine view.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Version>4.0.0.1753</Version>
|
||||
<Version>4.0.0.1756</Version>
|
||||
<Company>Canary Islands Computer Museum</Company>
|
||||
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
||||
<Product>Canary Islands Computer Museum Website</Product>
|
||||
|
||||
@@ -85,9 +85,18 @@
|
||||
@L["Introduction date"]
|
||||
</th>
|
||||
<td style="width: 67%;">
|
||||
<a asp-controller="Computer" asp-action="ByYear" asp-route-id="@_machine.Introduced.Value.Year">
|
||||
@if(_machine.Type == MachineType.Computer)
|
||||
{
|
||||
<a href="/computers/year/@_machine.Introduced.Value.Year">@_machine.Introduced.Value.ToLongDateString()</a>
|
||||
}
|
||||
else if(_machine.Type == MachineType.Console)
|
||||
{
|
||||
<a href="/consoles/year/@_machine.Introduced.Value.Year">@_machine.Introduced.Value.ToLongDateString()</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@_machine.Introduced.Value.ToLongDateString()
|
||||
</a>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user