Skip to content

Commit

Permalink
Con 3871 link term and condition from footer (#2199)
Browse files Browse the repository at this point in the history
* Terms And Conditions Footer  Link

* Terms And Conditions Link

* Update HtmlHelperExtensions.cs

* Update UI Nuget

Co-authored-by: Paul Howes <[email protected]>
  • Loading branch information
kola-samuel and Paul Howes authored Aug 31, 2021
1 parent b14a909 commit 4b8ab1a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/SFA.DAS.EAS.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public void Configuration(IAppBuilder app)
JwtSecurityTokenHandler.InboundClaimTypeMap = new Dictionary<string, string>();
UserLinksViewModel.ChangePasswordLink = $"{constants.ChangePasswordLink()}{urlHelper.Encode("https://" + config.DashboardUrl + "/service/password/change")}";
UserLinksViewModel.ChangeEmailLink = $"{constants.ChangeEmailLink()}{urlHelper.Encode("https://" + config.DashboardUrl + "/service/email/change")}";
UserLinksViewModel.TermsAndConditionsLink = constants.TermsAndConditionsLink();
}

private static Func<X509Certificate2> GetSigningCertificate(bool useCertificate)
Expand Down Expand Up @@ -149,5 +150,6 @@ public Constants(IdentityServerConfiguration configuration)
public string RequiresVerification() => _baseUrl + "requires_verification";
public string TokenEndpoint() => $"{_configuration.BaseAddress}{_configuration.TokenEndpoint}";
public string UserInfoEndpoint() => $"{_configuration.BaseAddress}{_configuration.UserInfoEndpoint}";
public string TermsAndConditionsLink() => $"{_configuration.BaseAddress.Replace("/identity", "")}{_configuration.TermsAndConditionsLink}";
}
}
1 change: 1 addition & 0 deletions src/SFA.DAS.EAS.Web/ViewModels/UserLinksViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ public static class UserLinksViewModel
{
public static string ChangePasswordLink { get; set; }
public static string ChangeEmailLink { get; set; }
public static string TermsAndConditionsLink { get; set; }
}
}
1 change: 1 addition & 0 deletions src/SFA.DAS.EAS.Web/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
<li><a href="@Url.Action("Help", "Home")" target="_blank">Help</a></li>
<li><a href="https://www.smartsurvey.co.uk/s/apprenticeshipservicefeedback/" target="_blank">Feedback</a></li>
<li><a href="@Url.Action("Privacy", "Home")">Privacy and cookies</a></li>
<li> <a target="_blank" href="@UserLinksViewModel.TermsAndConditionsLink">Terms and conditions</a></li>
<li>Built by the <a href="http://gov.uk/esfa" target="_blank">Education and Skills Funding Agency</a></li>
</ul>
<div class="open-government-licence">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public static IFooterViewModel GetFooterViewModel(this HtmlHelper html, bool use

return new FooterViewModel(new FooterConfiguration
{
ManageApprenticeshipsBaseUrl = configuration.EmployerAccountsBaseUrl
ManageApprenticeshipsBaseUrl = configuration.EmployerAccountsBaseUrl,
AuthenticationAuthorityUrl = configuration.Identity.BaseAddress
},
new UserContext
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<Version>1.0.16</Version>
</PackageReference>
<PackageReference Include="SFA.DAS.MA.Shared.UI">
<Version>1.1.66</Version>
<Version>1.1.72</Version>
</PackageReference>
<PackageReference Include="SFA.DAS.NLog.Logger" Version="1.2.1" />
<PackageReference Include="SFA.DAS.NLog.Targets.Redis" Version="1.2.1" />
Expand Down Expand Up @@ -942,4 +942,4 @@
</Target>
<Target Name="AfterBuild">
</Target> -->
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ public class IdentityServerConfiguration
public string ChangeEmailLink { get; set; }
public string RegisterLink { get; set; }
public string AccountActivationUrl { get; set; }
public string TermsAndConditionsLink { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<Version>1.0.5</Version>
</PackageReference>
<PackageReference Include="SFA.DAS.MA.Shared.UI">
<Version>1.1.66</Version>
<Version>1.1.72</Version>
</PackageReference>
<PackageReference Include="SFA.DAS.NLog.Logger" Version="1.2.1" />
<PackageReference Include="SFA.DAS.NLog.Targets.Redis" Version="1.2.1" />
Expand Down Expand Up @@ -683,4 +683,4 @@
</Target>
<Target Name="AfterBuild">
</Target> -->
</Project>
</Project>

0 comments on commit 4b8ab1a

Please sign in to comment.