Fix rendering company description.

This commit is contained in:
2019-05-18 17:25:23 +01:00
parent fb9a86f7e4
commit f5db8bbbff
3 changed files with 5 additions and 4 deletions

View File

@@ -68,6 +68,8 @@ namespace cicm_web.Controllers
if(company == null) return Index();
ViewBag.CompanyDescription = company.Description?.Text;
return View(company);
}

View File

@@ -433,11 +433,10 @@
</div>
</div>
@* TODO: This is not working with EF, check why *@
@if(Model.Description != null)
@if(ViewBag.CompanyDescription != null)
{
<div class="container-fluid row">
@Html.Raw(Model.Description)
@Html.Raw(ViewBag.CompanyDescription)
</div>
}
</div>

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<Version>3.0.99.414</Version>
<Version>3.0.99.418</Version>
<Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product>