diff --git a/CHANGELOG.md b/CHANGELOG.md index 293ac0045..5a244c904 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added - Added download for Ofsted specific data to Ofsted pages +- Added SharePoint folder link to details page ### Changed diff --git a/DfE.FindInformationAcademiesTrusts/Pages/OtherServicesLinkBuilder.cs b/DfE.FindInformationAcademiesTrusts/Pages/OtherServicesLinkBuilder.cs index b88b68d33..fa5a94e45 100644 --- a/DfE.FindInformationAcademiesTrusts/Pages/OtherServicesLinkBuilder.cs +++ b/DfE.FindInformationAcademiesTrusts/Pages/OtherServicesLinkBuilder.cs @@ -8,6 +8,7 @@ public interface IOtherServicesLinkBuilder string? FindSchoolPerformanceDataListingLink(string uid, TrustType trustType, string? satAcademyUrn); string GetInformationAboutSchoolsListingLinkForTrust(string trustUid); string GetInformationAboutSchoolsListingLinkForAcademy(string urn); + string SharepointFolderLink(string groupId); string? FinancialBenchmarkingInsightsToolListingLink(string? companiesHouseNumber); } @@ -25,6 +26,8 @@ public class OtherServicesLinkBuilder : IOtherServicesLinkBuilder private const string FindSchoolPerformanceDataBaseUrl = "https://www.find-school-performance-data.service.gov.uk"; + private const string SharepointBaseUrl = "https://educationgovuk.sharepoint.com"; + public string GetInformationAboutSchoolsListingLinkForTrust(string trustUid) { return $"{GetInformationAboutSchoolsBaseUrl}/Groups/Group/Details/{trustUid}"; @@ -59,4 +62,10 @@ public string GetInformationAboutSchoolsListingLinkForAcademy(string urn) _ => null }; } + + public string SharepointFolderLink(string groupId) + { + return + $"{SharepointBaseUrl}/_layouts/15/sharepoint.aspx?oobRefiners=%7B%22FileType%22%3A%5B%22other%22%5D%7D&q={groupId}&v=%2Fsearch"; + } } diff --git a/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Overview/TrustDetails.cshtml b/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Overview/TrustDetails.cshtml index e8b40c620..298634d69 100644 --- a/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Overview/TrustDetails.cshtml +++ b/DfE.FindInformationAcademiesTrusts/Pages/Trusts/Overview/TrustDetails.cshtml @@ -42,6 +42,17 @@ @Model.TrustOverview.RegionAndTerritory + @if (Model.SharepointLink is not null) + { +
- Companies House -
++ Companies House +
} @if (Model.GetInformationAboutSchoolsLink is not null) { -- Get information about schools -
++ Get information about schools +
} @if (Model.FinancialBenchmarkingInsightsToolLink is not null) { -- Financial Benchmarking and Insights Tool -
++ Financial Benchmarking and Insights Tool +
} @if (Model.FindSchoolPerformanceLink is not null) { - + }