mitodl / ocw-hugo-themes

A Hugo theme for building OCW websites
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Hide all resources when Hide Download is True #1203

Closed pt2302 closed 1 year ago

pt2302 commented 1 year ago

Description

The course download button is disabled when Hide Course Download is set to true in OCW Studio (this feature was added in https://github.com/mitodl/ocw-hugo-projects/pull/257 and https://github.com/mitodl/ocw-hugo-themes/pull/1194). However, for courses that do have downloadable resources, the list of resources is still visible at <course_url>/download.

Expected Behavior

Even if the course contains resources, the list of resources should not be displayed if Hide Course Download is set to true.

Current Behavior

If a course contains resources, the list of resources is still visible even when Hide Course Download is set to true.