Merge pull request #436 from MITx/kimth/sjsu

Hide chapters in addition to sections
This commit is contained in:
Calen Pennington
2012-08-16 12:32:21 -07:00

View File

@@ -75,6 +75,10 @@ def toc_for_course(user, request, course, active_chapter, active_section, course
chapters = list()
for chapter in course.get_display_items():
hide_from_toc = chapter.metadata.get('hide_from_toc','false').lower() == 'true'
if hide_from_toc:
continue
sections = list()
for section in chapter.get_display_items():