|
| 1 | +@using DigitalLearningSolutions.Web.Helpers |
1 | 2 | @using DigitalLearningSolutions.Web.ViewModels.Home |
2 | 3 | @model LandingPageViewModel |
3 | 4 |
|
4 | 5 | @{ |
5 | | - ViewData["Title"] = "Welcome"; |
| 6 | + ViewData["Title"] = "Welcome"; |
6 | 7 | } |
7 | 8 |
|
8 | 9 | <link rel="stylesheet" href="@Url.Content("~/css/home/welcome.css")" asp-append-version="true" /> |
9 | 10 |
|
10 | 11 | <div class="nhsuk-grid-row"> |
11 | | - <div class="nhsuk-grid-column-full"> |
12 | | - <partial name="MiniHub/_MiniHubHeading" model="@Model.MiniHubNavigationModel" /> |
| 12 | + <div class="nhsuk-grid-column-full"> |
| 13 | + <partial name="MiniHub/_MiniHubHeading" model="@Model.MiniHubNavigationModel" /> |
13 | 14 |
|
14 | | - <div class="welcome-page-button-container"> |
15 | | - @if (Model.UserIsLoggedIn) |
16 | | - { |
17 | | - @if (Model.UserIsLoggedInCentre) |
18 | | - { |
19 | | - <a class="nhsuk-button auth-button auth-button--left" role="button" asp-controller="ApplicationSelector" asp-action="Index"> |
20 | | - Switch application |
21 | | - </a> |
22 | | - } |
23 | | - } |
24 | | - else |
25 | | - { |
26 | | - <p class="nhsuk-body-m">If you have linked your account you can login through the Learning hub.</p> |
27 | | - <a class="nhsuk-button auth-button--blue" role="button" asp-controller="Login" asp-action="SharedAuth"> |
28 | | - Log in with Learning hub |
29 | | - </a> |
30 | | - <p class="nhsuk-u-font-weight-bold">Or</p> |
31 | | - <a class="nhsuk-button auth-button auth-button--left" role="button" asp-controller="Login" asp-action="Index"> |
32 | | - Log in |
33 | | - </a> |
34 | | - <a class="nhsuk-button nhsuk-button--secondary auth-button" role="button" asp-controller="Register" asp-action="Start"> |
35 | | - Register |
36 | | - </a> |
37 | | - } |
| 15 | + <div class="welcome-page-button-container"> |
| 16 | + @if (Model.UserIsLoggedIn) |
| 17 | + { |
| 18 | + @if (Model.UserIsLoggedInCentre) |
| 19 | + { |
| 20 | + <a class="nhsuk-button auth-button auth-button--left" role="button" asp-controller="ApplicationSelector" asp-action="Index"> |
| 21 | + Switch application |
| 22 | + </a> |
| 23 | + } |
| 24 | + } |
| 25 | + else |
| 26 | + { |
| 27 | + <feature name="@(FeatureFlags.LoginWithLearningHub)"> |
| 28 | + <p class="nhsuk-body-m">If you have linked your account you can login through the Learning hub.</p> |
| 29 | + <a class="nhsuk-button auth-button--blue" role="button" asp-controller="Login" asp-action="SharedAuth"> |
| 30 | + Log in with Learning hub |
| 31 | + </a> |
| 32 | + <p class="nhsuk-u-font-weight-bold">Or</p> |
| 33 | + </feature> |
| 34 | + <a class="nhsuk-button auth-button auth-button--left" role="button" asp-controller="Login" asp-action="Index"> |
| 35 | + Log in |
| 36 | + </a> |
| 37 | + <a class="nhsuk-button nhsuk-button--secondary auth-button" role="button" asp-controller="Register" asp-action="Start"> |
| 38 | + Register |
| 39 | + </a> |
| 40 | + } |
| 41 | + </div> |
| 42 | + <partial name="MiniHub/_ContentsList" model="@Model.MiniHubNavigationModel" /> |
| 43 | + <p class="nhsuk-body-m">Our products and services can help you manage digital learning delivery for the benefit of the people in your organisation.</p> |
| 44 | + <partial name="MiniHub/_Pagination" model="@Model.MiniHubNavigationModel" /> |
38 | 45 | </div> |
39 | | - @if (Model.UserIsLoggedIn) |
40 | | - { |
41 | | - <partial name="MiniHub/_ContentsList" model="@Model.MiniHubNavigationModel" /> |
42 | | - <p class="nhsuk-body-m">Our products and services can help you manage digital learning delivery for the benefit of the people in your organisation.</p> |
43 | | - <partial name="MiniHub/_Pagination" model="@Model.MiniHubNavigationModel" /> |
44 | | - } |
45 | | - </div> |
46 | 46 | </div> |
0 commit comments