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
edx
edx-platform
Commits
a02b242e
Commit
a02b242e
authored
Jun 08, 2015
by
Diana Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8413 from edx/diana/fix-allow-multiple
Allow multiple external_link tabs for one course.
parents
53e2f2ee
a224d06a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
lms/djangoapps/courseware/tabs.py
+1
-0
lms/djangoapps/courseware/tests/test_tabs.py
+1
-0
No files found.
lms/djangoapps/courseware/tabs.py
View file @
a02b242e
...
...
@@ -234,6 +234,7 @@ class ExternalLinkCourseViewType(EnrolledCourseViewType):
name
=
'external_link'
priority
=
None
is_default
=
False
# An external link tab is not added to a course by default
allow_multiple
=
True
@classmethod
def
create_tab
(
cls
,
tab_dict
):
...
...
lms/djangoapps/courseware/tests/test_tabs.py
View file @
a02b242e
...
...
@@ -510,6 +510,7 @@ class TabListTestCase(TabTestCase):
{
'type'
:
CourseInfoViewType
.
name
,
'name'
:
'fake_name'
},
{
'type'
:
'discussion'
,
'name'
:
'fake_name'
},
{
'type'
:
ExternalLinkCourseViewType
.
name
,
'name'
:
'fake_name'
,
'link'
:
'fake_link'
},
{
'type'
:
ExternalLinkCourseViewType
.
name
,
'name'
:
'fake_name'
,
'link'
:
'fake_link'
},
{
'type'
:
'textbooks'
},
{
'type'
:
'pdf_textbooks'
},
{
'type'
:
'html_textbooks'
},
...
...
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