diff --git a/RELEASE.rst b/RELEASE.rst index 22bb62ef3..be2cd5f19 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -1,6 +1,11 @@ Release Notes ============= +Version 1.121.0 +--------------- + +- Update download page text when no resources found (#1475) + Version 1.120.0 (Released December 12, 2024) --------------- diff --git a/course-v2/layouts/partials/resources_header.html b/course-v2/layouts/partials/resources_header.html index 6200222f0..4aea2f79f 100644 --- a/course-v2/layouts/partials/resources_header.html +++ b/course-v2/layouts/partials/resources_header.html @@ -3,9 +3,7 @@ {{- $downloadCourseUrl := partial "get_course_download_url.html" . -}} {{- $noResourcesFound := partial "show_no_resources_found.html" (dict "context" . "taxonomy" "learning_resource_types") -}} {{- $containsVideos := partial "contains_videos.html" (dict "context" . "taxonomy" "learning_resource_types") -}} -{{- if $hideDownload -}} - {{ partial "no_resources_found.html" }} -{{- else -}} +{{- if not $hideDownload -}}

Download

@@ -16,6 +14,12 @@

Download

+ {{- if $noResourcesFound -}} + This package contains the same content as the online version of the course. Once downloaded, to open the homepage, click on the index.html file. + For more help using these materials, read our {{ partial "link.html" (dict "href" $zenDeskUrl "text" "FAQs" "target" "_blank") }}. +
+
+ {{- else -}} This package contains the same content as the online version of the course {{- if $containsVideos }}, except for the audio/video materials, which can be downloaded using the links below{{ end }}. Once downloaded, follow the steps below. For more help using these materials, read our {{ partial "link.html" (dict "href" $zenDeskUrl "text" "FAQs" "target" "_blank") }}. @@ -25,6 +29,7 @@

Download

+ {{- end -}}
Note: @@ -32,7 +37,4 @@

Download

We recommend using a computer with the downloaded course package.
-{{- if $noResourcesFound -}} - {{ partial "no_resources_found.html" }} -{{- end -}} {{- end -}} \ No newline at end of file diff --git a/package.json b/package.json index 90e8d94be..842bd6c50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ocw-hugo-themes", - "version": "1.120.0", + "version": "1.121.0", "description": "A Hugo theme for building OCW websites", "repository": "mitodl/ocw-hugo-themes", "main": "base-theme/assets/index.js",