Skip to content

Commit 1d5cbad

Browse files
committed
TD_5434_ made changes based on the new comments received by the team, added the logic to show the footer application through out the aplication only when the BannerText field has a value. removed the banner text from the Learning Menu module pages.
1 parent 105f110 commit 1d5cbad

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

DigitalLearningSolutions.Web/Views/LearningMenu/CoursePassword.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
ViewData["CustomisationId"] = Model.Id;
1313
ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/LearningMenu/{Model.Id}/Password";
1414
ViewData["HeaderPathName"] = Model.Title;
15+
ViewData["BannerText"] = Model.BannerText;
1516
}
1617
@section NavMenuItems {
1718
<partial name="Shared/_NavMenuItems" />
@@ -36,7 +37,6 @@
3637
<div class="nhsuk-grid-column-full">
3738
<h1 id="page-heading" class="nhsuk-heading-xl">@Model.Title</h1>
3839
<p class="nhsuk-u-font-size-24">@Model.Description</p>
39-
<p class="nhsuk-u-secondary-text-color nhsuk-heading-s">@Model.BannerText</p>
4040
</div>
4141
</div>
4242

DigitalLearningSolutions.Web/Views/LearningMenu/Index.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
ViewData["CustomisationId"] = Model.Id;
1313
ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/LearningMenu/{Model.Id}";
1414
ViewData["HeaderPathName"] = Model.Title;
15+
ViewData["BannerText"] = Model.BannerText;
1516
}
1617
@section NavMenuItems {
1718
<partial name="Shared/_NavMenuItems" />
@@ -42,7 +43,6 @@
4243
}
4344

4445
<p class="nhsuk-u-margin-bottom-0 nhsuk-heading-m">@Model.CentreName</p>
45-
<p class="nhsuk-u-secondary-text-color nhsuk-heading-s">@Model.BannerText</p>
4646
</div>
4747
</div>
4848

DigitalLearningSolutions.Web/Views/Shared/Components/DlsFooterBannerText/Default.cshtml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
@using DigitalLearningSolutions.Web.ViewModels.Common.ViewComponents
22
@model DlsFooterBannerTextViewModel
33
@{
4-
var currentApplication = ViewData["Application"]?.ToString();
5-
}
6-
@{
7-
if (!String.IsNullOrEmpty(currentApplication) && (currentApplication.Contains("Learning Portal") || currentApplication.Contains("Supervisor")))
4+
if (!String.IsNullOrEmpty(Model.CentreName))
85
{
96
<h2 class="nhsuk-heading-xs nhsuk-u-margin-bottom-2 nhsuk-u-secondary-text-color">Need help?</h2>
107
<div class="nhsuk-footer nhsuk-u-font-size-16 nhsuk-u-secondary-text-color">

DigitalLearningSolutions.Web/Views/Supervisor/Index.cshtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
ViewData["Title"] = "Dashboard";
77
ViewData["Application"] = "Supervisor";
88
ViewData["HeaderPathName"] = "Supervisor";
9+
ViewData["BannerText"] = Model.BannerText;
910
}
1011
<link rel="stylesheet" href="@Url.Content("~/css/frameworks/frameworksShared.css")" asp-append-version="true">
1112
@section NavMenuItems {

0 commit comments

Comments
 (0)