modified the html static book to only enable annotator.js when notes are enabled for the course

This commit is contained in:
Arthur Barrett
2013-05-06 19:29:44 -04:00
parent 45cca10fb9
commit 4070e019e4
5 changed files with 35 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
# TODO: make a separate policy setting to enable/disable notes.
def notes_enabled_for_course(course):
''' Returns True if notes are enabled for the course, False otherwise. '''
notes_tab_type = 'notes'
return next((True for tab in course.tabs if tab['type'] == notes_tab_type), False)