Skip to content

Commit

Permalink
EYQB-379: Updated to make the related content conditionally render (#299
Browse files Browse the repository at this point in the history
)
  • Loading branch information
sam-c-dfe authored Aug 8, 2024
1 parent 2edfc0a commit d26e30f
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/Dfe.EarlyYearsQualification.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@
</a>
<div id="post-cta-content" class="govuk-body">@Html.Raw(Model.PostCtaButtonContent)</div>
</div>
<div class="govuk-grid-column-full govuk-grid-column-one-third-from-desktop">
<aside role="complementary">
<h2 id="right-hand-content-header" class="govuk-heading-m" id="subsection-title">
@Model.RightHandSideContentHeader
</h2>
<nav id="right-hand-content" role="navigation" aria-labelledby="subsection-title">
@Html.Raw(Model.RightHandSideContent)
</nav>
</aside>
</div>
@if (!string.IsNullOrEmpty(Model.RightHandSideContentHeader) && !string.IsNullOrEmpty(Model.RightHandSideContent))
{
<div class="govuk-grid-column-full govuk-grid-column-one-third-from-desktop">
<aside role="complementary">
<h2 id="right-hand-content-header" class="govuk-heading-m" id="subsection-title">
@Model.RightHandSideContentHeader
</h2>
<nav id="right-hand-content" role="navigation" aria-labelledby="subsection-title">
@Html.Raw(Model.RightHandSideContent)
</nav>
</aside>
</div>
}
</div>

0 comments on commit d26e30f

Please sign in to comment.