Commit 2856b943 by Bill Filler

hijacked discussions tab

parent 7f3e674a
......@@ -101,12 +101,12 @@ class DigitalLockerTab(TabFragmentViewMixin, EnrolledTab):
# view_name = 'openedx.course_experience.digital_locker_fragment'
fragment_view_name = 'openedx.features.course_experience.views.digital_locker_fragment.DigitalLockerFragmentView'
allow_multiple = False
is_dynamic = True
#is_dynamic = True
is_default = False
@classmethod
def is_enabled(cls, course, user=None):
print('DigitalLockerTab returning True is_enabled')
return True
return False
class ProgressTab(EnrolledTab):
"""
......
......@@ -16,10 +16,11 @@ class DiscussionTab(TabFragmentViewMixin, EnrolledTab):
"""
type = 'discussion'
title = ugettext_noop('Discussion')
title = 'Digital Locker'
priority = None
view_name = 'discussion.views.forum_form_discussion'
fragment_view_name = 'discussion.views.DiscussionBoardFragmentView'
# fragment_view_name = 'discussion.views.DiscussionBoardFragmentView'
fragment_view_name = 'openedx.features.course_experience.views.digital_locker_fragment.DigitalLockerFragmentView'
is_hideable = settings.FEATURES.get('ALLOW_HIDING_DISCUSSION_TAB', False)
is_default = False
body_class = 'discussion'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment