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();
|
if(company == null) return Index();
|
||||||
|
|
||||||
|
ViewBag.CompanyDescription = company.Description?.Text;
|
||||||
|
|
||||||
return View(company);
|
return View(company);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -433,11 +433,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@* TODO: This is not working with EF, check why *@
|
@if(ViewBag.CompanyDescription != null)
|
||||||
@if(Model.Description != null)
|
|
||||||
{
|
{
|
||||||
<div class="container-fluid row">
|
<div class="container-fluid row">
|
||||||
@Html.Raw(Model.Description)
|
@Html.Raw(ViewBag.CompanyDescription)
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||||
<Version>3.0.99.414</Version>
|
<Version>3.0.99.418</Version>
|
||||||
<Company>Canary Islands Computer Museum</Company>
|
<Company>Canary Islands Computer Museum</Company>
|
||||||
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
<Copyright>Copyright © 2003-2018 Natalia Portillo</Copyright>
|
||||||
<Product>Canary Islands Computer Museum Website</Product>
|
<Product>Canary Islands Computer Museum Website</Product>
|
||||||
|
|||||||
Reference in New Issue
Block a user