mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix view when company has an unknown country.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Version>4.0.0.1557</Version>
|
||||
<Version>4.0.0.1569</Version>
|
||||
<Company>Canary Islands Computer Museum</Company>
|
||||
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
||||
<Product>Canary Islands Computer Museum Website</Product>
|
||||
|
||||
@@ -122,6 +122,8 @@
|
||||
<tr>
|
||||
<th>@L["Country"]</th>
|
||||
<td>
|
||||
@if (_company.Country != null)
|
||||
{
|
||||
<a href="/companies/country/@_company.CountryId">
|
||||
@if (File.Exists(Path.Combine(Host.WebRootPath, "assets/flags/countries", _company.CountryId + ".svg")))
|
||||
{
|
||||
@@ -137,6 +139,11 @@
|
||||
}
|
||||
@L[_company.Country]
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
@L["Unknown (country)"]
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"projectId":"db06ff35-f00a-4492-a887-0e2c62d6c2ba","projectName":"Marechai"}
|
||||
{"projectId":"db06ff35-f00a-4492-a887-0e2c62d6c2ba","projectName":"Marechai","neverTrack":false}
|
||||
Reference in New Issue
Block a user