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
2723f051
Commit
2723f051
authored
Jun 20, 2012
by
Victor Shnayder
Committed by
Matthew Mongeau
Jun 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix render of lms index with no chapter or section.
parent
b8c248fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lms/djangoapps/courseware/views.py
+6
-4
No files found.
lms/djangoapps/courseware/views.py
View file @
2723f051
...
...
@@ -82,7 +82,11 @@ def profile(request, student_id=None):
def
render_accordion
(
request
,
course
,
chapter
,
section
):
''' Draws navigation bar. Takes current position in accordion as
parameter. Returns (initialization_javascript, content)'''
parameter.
If chapter and section are '' or None, renders a default accordion.
Returns (initialization_javascript, content)'''
if
not
course
:
course
=
"6.002 Spring 2012"
...
...
@@ -221,10 +225,8 @@ def index(request, course=None, chapter=None, section=None,
''' Fixes URLs -- we convert spaces to _ in URLs to prevent
funny encoding characters and keep the URLs readable. This undoes
that transformation.
TODO: Properly replace underscores. (Q: what is properly?)
'''
return
s
.
replace
(
'_'
,
' '
)
return
s
.
replace
(
'_'
,
' '
)
if
s
is
not
None
else
None
def
get_submodule_ids
(
module_xml
):
'''
...
...
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