Show year of logo starting usage if available, fixes #18.

This commit is contained in:
2020-08-06 01:02:45 +01:00
parent 34ff03aca1
commit 590676bea7
3 changed files with 8 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>4.0.0.1784</Version>
<Version>4.0.0.1787</Version>
<Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product>

View File

@@ -84,6 +84,10 @@
/assets/logos/png/1x/@(logo.Guid).webp 3x" src="/assets/logos/png/1x/@(logo.Guid).png" alt="" height="auto" width="auto" style="max-height: 256px; max-width: 256px" />
</picture>
</div>
@if(logo.Year.HasValue)
{
<div style="text-align: center;">@(string.Format(L["in use since {0}"], logo.Year))</div>
}
</CarouselSlide>
}
</Carousel>

View File

@@ -530,4 +530,7 @@
<value>Si el día o mes de la venta, fusión o bancarrota están marcados como desconocidos, elige cualquiera en el campo inferior, será ignorado.</value>
<comment>If the sold, merge or bankruptcy day or month are selected as unknown, pick anyone in the field below, it will be ignored.</comment>
</data>
<data name="in use since {0}" xml:space="preserve">
<value>en uso desde el {0}</value>
</data>
</root>