Don't generate html for empty title and lessons section on single course page #3307
Labels
Courses
Legacy
Legacy functionality that has been replaced by blocks
[Pri] Low
Cosmetic issue, low impact, easy workaround
[Type] Bug
When there are no (other) lessons in a course, the single course page still generates the html for the title and content of the list. That is not only redundant, but also a problem when the title is getting prefixed by a filter.
In that case it is left to the filter not to prefix the empty title and make the existence of the empty title visible. When it doesn't (what it might not) a title is shown with only the prefix and no content below it. When there is no content (lessons outside of modules), there is no need for a title and a content wrapper.
Steps to Reproduce
What I Expected
No .course-lessons section and no header title of that section when there are no lessons to show.
What Happened Instead
Below the .entry section the following html is added:
The text was updated successfully, but these errors were encountered: