Skip to content

Commit

Permalink
Update download page text when no resources found (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
pt2302 authored Dec 10, 2024
1 parent 11b8c45 commit af5ff64
Showing 1 changed file with 8 additions and 6 deletions.
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 -}}

0 comments on commit af5ff64

Please sign in to comment.