Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.121.0 #1478

Merged
merged 3 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -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)
---------------

Expand Down
14 changes: 8 additions & 6 deletions course-v2/layouts/partials/resources_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
<div class="mb-2">
<h2>Download</h2>
<div class="hide-offline download-course-container background-color-light-grey p-3">
Expand All @@ -16,6 +14,12 @@ <h2>Download</h2>
</a>
</div>
<div class="col-12 col-md-9">
{{- if $noResourcesFound -}}
This package contains the same content as the online version of the course. Once downloaded, to open the homepage, click on the <strong>index.html</strong> file.
For more help using these materials, read our {{ partial "link.html" (dict "href" $zenDeskUrl "text" "FAQs" "target" "_blank") }}.
</div>
</div>
{{- else -}}
This package contains the same content as the online version of the course
{{- if $containsVideos }}, <em>except for the audio/video materials</em>, 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") }}.
Expand All @@ -25,14 +29,12 @@ <h2>Download</h2>
</ol>
</div>
</div>
{{- end -}}
</div>
<div class="alert-warning p-2 limited-pointer-only">
<strong>Note: </strong>
The downloaded course may not work on mobile devices.
We recommend using a computer with the downloaded course package.
</div>
</div>
{{- if $noResourcesFound -}}
{{ partial "no_resources_found.html" }}
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading