mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Fix rendering company description.
This commit is contained in:
@@ -68,6 +68,8 @@ namespace cicm_web.Controllers
|
||||
|
||||
if(company == null) return Index();
|
||||
|
||||
ViewBag.CompanyDescription = company.Description?.Text;
|
||||
|
||||
return View(company);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user