There are other annotations features still in the platform but this one is the one that works with an annotations server that was specialized and not generally used by most instances of the platform. The initial PR to remove this was made by 'lduarte1991' and can be found here: https://github.com/edx/edx-platform/pull/17299 The work done based on the squashed commits: removed advanced modules config for annotations remove module files and config for annotations remove js and css files related to annotations, under ova folders removed js and css annotator file configs for cms and lms remove template html files for annotations removed annotations options from static html book Added back some files that were originally marked "for OVA" but others used as per acceptance tests Added back css file configs incorrectly marked as ova Remove annotation related advanced settings from test. Correct hls require.js pathing.
37 lines
958 B
Python
37 lines
958 B
Python
"""
|
|
Registers the "edX Notes" feature for the edX platform.
|
|
"""
|
|
from django.conf import settings
|
|
from django.utils.translation import ugettext_noop
|
|
|
|
from courseware.tabs import EnrolledTab
|
|
|
|
|
|
class EdxNotesTab(EnrolledTab):
|
|
"""
|
|
The representation of the edX Notes course tab type.
|
|
"""
|
|
|
|
type = "edxnotes"
|
|
title = ugettext_noop("Notes")
|
|
view_name = "edxnotes"
|
|
|
|
@classmethod
|
|
def is_enabled(cls, course, user=None):
|
|
"""Returns true if the edX Notes feature is enabled in the course.
|
|
|
|
Args:
|
|
course (CourseDescriptor): the course using the feature
|
|
user (User): the user interacting with the course
|
|
"""
|
|
if not super(EdxNotesTab, cls).is_enabled(course, user=user):
|
|
return False
|
|
|
|
if not settings.FEATURES.get("ENABLE_EDXNOTES"):
|
|
return False
|
|
|
|
if user and not user.is_authenticated:
|
|
return False
|
|
|
|
return course.edxnotes
|