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
3053caec
Commit
3053caec
authored
Jul 09, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get course about page working.
parent
949efb62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
common/lib/xmodule/xmodule/course_module.py
+1
-4
lms/djangoapps/courseware/views.py
+1
-1
No files found.
common/lib/xmodule/xmodule/course_module.py
View file @
3053caec
from
path
import
path
from
xmodule.modulestore
import
Location
from
xmodule.seq_module
import
SequenceDescriptor
,
SequenceModule
import
logging
log
=
logging
.
getLogger
(
"mitx.courseware"
)
class
CourseDescriptor
(
SequenceDescriptor
):
module_class
=
SequenceModule
...
...
@@ -45,7 +42,7 @@ class CourseDescriptor(SequenceDescriptor):
# this interface when we find a good format for defining so many snippets of text/html.
if
section_key
in
[
'short_description'
,
'description'
,
'key_dates'
,
'video'
,
'course_staff_short'
,
'course_staff_extended'
,
'requirements'
,
'syllabus'
,
'textbook'
,
'faq'
,
'more_info'
]:
'requirements'
,
'syllabus'
,
'textbook'
,
'faq'
,
'more_info'
,
'number'
]:
try
:
with
self
.
system
.
resources_fs
.
open
(
path
(
"about"
)
/
section_key
+
".html"
)
as
htmlFile
:
return
htmlFile
.
read
()
...
...
lms/djangoapps/courseware/views.py
View file @
3053caec
...
...
@@ -257,4 +257,4 @@ def course_info(request, course_id):
except
KeyError
:
raise
Http404
(
"Course not found"
)
return
render_to_response
(
'
info
.html'
,
{
'csrf'
:
csrf_token
,
'course'
:
course
})
return
render_to_response
(
'
portal/course_about
.html'
,
{
'csrf'
:
csrf_token
,
'course'
:
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