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
453e8f50
Commit
453e8f50
authored
Oct 25, 2013
by
Olivier Marquez
Committed by
David Baumgold
Oct 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tabs.py
parent
94bf8a18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
cms/djangoapps/contentstore/views/tabs.py
+8
-5
No files found.
cms/djangoapps/contentstore/views/tabs.py
View file @
453e8f50
...
...
@@ -15,6 +15,7 @@ from xmodule.modulestore.django import modulestore
from
..utils
import
get_course_for_item
,
get_modulestore
from
django.utils.translation
import
ugettext
as
_
__all__
=
[
'edit_tabs'
,
'reorder_static_tabs'
]
...
...
@@ -30,11 +31,13 @@ def initialize_course_tabs(course):
# This logic is repeated in xmodule/modulestore/tests/factories.py
# so if you change anything here, you need to also change it there.
course
.
tabs
=
[{
"type"
:
"courseware"
},
{
"type"
:
"course_info"
,
"name"
:
"Course Info"
},
{
"type"
:
"discussion"
,
"name"
:
"Discussion"
},
{
"type"
:
"wiki"
,
"name"
:
"Wiki"
},
{
"type"
:
"progress"
,
"name"
:
"Progress"
}]
course
.
tabs
=
[
{
"type"
:
"courseware"
,
"name"
:
_
(
"Courseware"
)},
{
"type"
:
"course_info"
,
"name"
:
_
(
"Course Info"
)},
{
"type"
:
"discussion"
,
"name"
:
_
(
"Discussion"
)},
{
"type"
:
"wiki"
,
"name"
:
_
(
"Wiki"
)},
{
"type"
:
"progress"
,
"name"
:
_
(
"Progress"
)},
]
modulestore
(
'direct'
)
.
update_metadata
(
course
.
location
.
url
(),
own_metadata
(
course
))
...
...
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