Skip to content

Commit c6bdcc3

Browse files
committed
TD_5343_Adding the centre information in the footer through out the learning portal pages as texts.
1 parent 8158abd commit c6bdcc3

File tree

4 files changed

+27
-18
lines changed

4 files changed

+27
-18
lines changed

DigitalLearningSolutions.Web/Views/LearningPortal/Available/Available.cshtml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
<link rel="stylesheet" href="@Url.Content("~/css/learningPortal/courses.css")" asp-append-version="true">
77

88
@{
9-
ViewData["Application"] = "Learning Portal";
10-
ViewData["Title"] = "Available Activities";
11-
ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/LearningPortal/Available";
12-
ViewData["HeaderPathName"] = "Learning Portal";
9+
ViewData["Application"] = "Learning Portal";
10+
ViewData["Title"] = "Available Activities";
11+
ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/LearningPortal/Available";
12+
ViewData["HeaderPathName"] = "Learning Portal";
13+
ViewData["BannerText"] = Model.BannerText;
1314
}
1415

1516
@section NavMenuItems {
@@ -24,10 +25,6 @@
2425

2526
<div class="nhsuk-grid-column-full">
2627
<h1 id="page-heading">Available Activities</h1>
27-
@if (Model.BannerText != null)
28-
{
29-
<h2 class="page-subheading">@Model.BannerText</h2>
30-
}
3128

3229
<partial name="SearchablePage/Configurations/_FullWidthSearchSortAndFilter" model="Model" />
3330

DigitalLearningSolutions.Web/Views/LearningPortal/Completed/Completed.cshtml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
ViewData["Title"] = "My Completed Activities";
1111
ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/LearningPortal/Completed";
1212
ViewData["HeaderPathName"] = "Learning Portal";
13+
ViewData["BannerText"] = Model.BannerText;
1314
}
1415

1516
@if (Model.JavascriptSearchSortFilterPaginateEnabled)
@@ -19,11 +20,7 @@
1920
<div class="nhsuk-grid-row" id="@(Model.JavascriptSearchSortFilterPaginateEnabled ? "js-styling-hidden-area-while-loading" : "no-js-styling")">
2021
<div class="nhsuk-grid-column-full">
2122
<h1 id="page-heading">My Completed Activities</h1>
22-
@if (Model.BannerText != null)
23-
{
24-
<h2 class="page-subheading">@Model.BannerText</h2>
25-
}
26-
23+
2724
@if (!Model.ApiIsAccessible)
2825
{
2926
<vc:learning-resource-warning css-class="nhsuk-u-margin-bottom-4 nhsuk-u-margin-top-4"

DigitalLearningSolutions.Web/Views/LearningPortal/Current/Current.cshtml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
ViewData["Title"] = "My Current Activities";
1313
ViewData["HeaderPath"] = $"{Configuration["AppRootPath"]}/LearningPortal/Current";
1414
ViewData["HeaderPathName"] = "Learning Portal";
15+
ViewData["BannerText"] = Model.BannerText;
1516
}
1617

1718
@section NavMenuItems {
@@ -25,11 +26,7 @@
2526
<div class="nhsuk-grid-row" id="@(Model.JavascriptSearchSortFilterPaginateEnabled ? "js-styling-hidden-area-while-loading" : "no-js-styling")">
2627
<div class="nhsuk-grid-column-full">
2728
<h1 id="page-heading">My Current Activities</h1>
28-
@if (Model.BannerText != null)
29-
{
30-
<h2 class="page-subheading word-break">@Model.BannerText</h2>
31-
}
32-
29+
3330
@if (!Model.ApiIsAccessible)
3431
{
3532
<vc:learning-resource-warning css-class="nhsuk-u-margin-bottom-4 nhsuk-u-margin-top-4"

DigitalLearningSolutions.Web/Views/Shared/_DlsFooter.cshtml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
1+
@{
2+
var currentPath = Context.Request.Path.ToString();
3+
}
14
<footer role="contentinfo">
25
<div class="nhsuk-footer-container">
6+
<div class="nhsuk-width-container">
7+
@{
8+
if (currentPath.Contains("/LearningPortal/Current") || currentPath.Contains("/LearningPortal/Completed") || currentPath.Contains("/LearningPortal/Available"))
9+
{
10+
<h2 class="nhsuk-u-visually-hidden">Centre Information</h2>
11+
<div class="nhsuk-footer">
12+
<ul class="nhsuk-footer__list">
13+
<li class="nhsuk-footer__list-item">
14+
<span>Centre contact information:</span> <span>@ViewData["BannerText"]</span>
15+
</li>
16+
</ul>
17+
</div>
18+
}
19+
}
20+
</div>
321
<div class="nhsuk-width-container">
422
<h2 class="nhsuk-u-visually-hidden">Support links</h2>
523
<div class="nhsuk-footer">

0 commit comments

Comments
 (0)