diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml index 788bfaba3..eb2d3312c 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/Catalogue/Edit.cshtml @@ -228,10 +228,10 @@
- +

When applicable please select the provider of this content. This will allow a contributor to flag content from a specific provider.

This will enable learners to search for content produced by organisations and help separate learning resources from community contributions.

-

Provided by;

+

Developed with;

diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml index 83f90382b..a2df6a2c6 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/Resource/Details.cshtml @@ -153,7 +153,7 @@
@if (Model.Providers != null && Model.Providers.Count > 0) { -
Provided by
+
Developed with
@foreach (var provider in Model.Providers) {
diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml index 1022dcd2b..4d82d8244 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/Details.cshtml @@ -55,7 +55,7 @@ Contributions
  • - Provided by permission + Developed with permission
  • History diff --git a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml index ecbafa76f..42d886a60 100644 --- a/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml +++ b/AdminUI/LearningHub.Nhs.AdminUI/Views/User/_UserProviders.cshtml @@ -3,27 +3,27 @@ @model List
    -
    -
    -

    Provided by permission

    -

    Give permission to allow a contributor to flag content from a specific provider. This helps to separate learning resources from community contributions.

    -

    Select the relevant providers;

    +
    +
    +

    Developed with permission

    +

    Give permission to allow a contributor to flag content from a specific provider. This helps to separate learning resources from community contributions.

    +

    Select the relevant providers;

    +
    -
    -
    -
    - @if (Model != null && Model.Count > 0) - { -
    - @foreach (var item in Model) - { - - @item.Text -
    - } +
    +
    + @if (Model != null && Model.Count > 0) + { +
    + @foreach (var item in Model) + { + + @item.Text +
    + } +
    + }
    - }
    -
    diff --git a/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs b/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs index aaecc8c42..48e8465c6 100644 --- a/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs +++ b/LearningHub.Nhs.WebUI/Controllers/LearningSessionsController.cs @@ -54,9 +54,12 @@ public LearningSessionsController( public async Task Scorm(int id) { var rv = await this.resourceService.GetItemByIdAsync(id); + if (rv != null) + { + this.ViewBag.FilePath = $"/ScormContent/{rv.ScormDetails.ContentFilePath}/{rv.ScormDetails.ScormManifest.ManifestUrl}"; + } this.ViewBag.ResourceReferenceId = id; - this.ViewBag.FilePath = $"/ScormContent/{rv.ScormDetails.ContentFilePath}/{rv.ScormDetails.ScormManifest.ManifestUrl}"; this.ViewBag.KeepUserSessionAliveInterval = Convert.ToInt32(this.settings.Value.KeepUserSessionAliveIntervalMins) * 60000; this.ViewBag.UseTraceWindow = await this.userGroupService.UserHasPermissionAsync("Scorm_Trace_Window"); diff --git a/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs b/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs index 3f37a7291..c60282312 100644 --- a/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs +++ b/LearningHub.Nhs.WebUI/Helpers/ProviderHelper.cs @@ -22,7 +22,7 @@ public static string GetProvidersString(List providerNames) if (providerNames != null && providerNames.Count > 0) { - providerstring += "Provided by "; + providerstring += "Developed with "; providerstring += string.Join(", ", providerNames.ToArray()); } diff --git a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue index 2ffac0564..0f958304b 100644 --- a/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue +++ b/LearningHub.Nhs.WebUI/Scripts/vuesrc/contribute-resource/Contribute.vue @@ -95,7 +95,7 @@