Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
edx-platform
Commits
2856b943
Commit
2856b943
authored
Sep 28, 2017
by
Bill Filler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hijacked discussions tab
parent
7f3e674a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
lms/djangoapps/courseware/tabs.py
+3
-3
lms/djangoapps/discussion/plugins.py
+3
-2
No files found.
lms/djangoapps/courseware/tabs.py
View file @
2856b943
...
@@ -101,12 +101,12 @@ class DigitalLockerTab(TabFragmentViewMixin, EnrolledTab):
...
@@ -101,12 +101,12 @@ class DigitalLockerTab(TabFragmentViewMixin, EnrolledTab):
# view_name = 'openedx.course_experience.digital_locker_fragment'
# view_name = 'openedx.course_experience.digital_locker_fragment'
fragment_view_name
=
'openedx.features.course_experience.views.digital_locker_fragment.DigitalLockerFragmentView'
fragment_view_name
=
'openedx.features.course_experience.views.digital_locker_fragment.DigitalLockerFragmentView'
allow_multiple
=
False
allow_multiple
=
False
is_dynamic
=
True
#is_dynamic = True
is_default
=
False
@classmethod
@classmethod
def
is_enabled
(
cls
,
course
,
user
=
None
):
def
is_enabled
(
cls
,
course
,
user
=
None
):
print
(
'DigitalLockerTab returning True is_enabled'
)
return
False
return
True
class
ProgressTab
(
EnrolledTab
):
class
ProgressTab
(
EnrolledTab
):
"""
"""
...
...
lms/djangoapps/discussion/plugins.py
View file @
2856b943
...
@@ -16,10 +16,11 @@ class DiscussionTab(TabFragmentViewMixin, EnrolledTab):
...
@@ -16,10 +16,11 @@ class DiscussionTab(TabFragmentViewMixin, EnrolledTab):
"""
"""
type
=
'discussion'
type
=
'discussion'
title
=
ugettext_noop
(
'Discussion'
)
title
=
'Digital Locker'
priority
=
None
priority
=
None
view_name
=
'discussion.views.forum_form_discussion'
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_hideable
=
settings
.
FEATURES
.
get
(
'ALLOW_HIDING_DISCUSSION_TAB'
,
False
)
is_default
=
False
is_default
=
False
body_class
=
'discussion'
body_class
=
'discussion'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment