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
66343884
Commit
66343884
authored
Sep 13, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pull ocw links from about/ocw_links.html
format should be <ul> <li>link</li> <li>other link</li> </ul>
parent
81ad9530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
lms/djangoapps/courseware/courses.py
+2
-1
lms/templates/portal/course_about.html
+5
-5
No files found.
lms/djangoapps/courseware/courses.py
View file @
66343884
...
...
@@ -101,6 +101,7 @@ def get_course_about_section(course, section_key):
- textbook
- faq
- more_info
- ocw_links
"""
# Many of these are stored as html files instead of some semantic
...
...
@@ -112,7 +113,7 @@ def get_course_about_section(course, section_key):
'course_staff_short'
,
'course_staff_extended'
,
'requirements'
,
'syllabus'
,
'textbook'
,
'faq'
,
'more_info'
,
'number'
,
'instructors'
,
'overview'
,
'effort'
,
'end_date'
,
'prerequisites'
]:
'effort'
,
'end_date'
,
'prerequisites'
,
'ocw_links'
]:
try
:
fs
=
course
.
system
.
resources_fs
...
...
lms/templates/portal/course_about.html
View file @
66343884
...
...
@@ -152,6 +152,9 @@
</ol>
</section>
## For now, ocw links are the only thing that goes in additional resources
% if get_course_about_section(course, "ocw_links"):
<section
class=
"additional-resources"
>
<header>
<h1>
Additional Resources
</h1>
...
...
@@ -159,13 +162,10 @@
<section>
<h2
class=
"opencourseware"
>
MITOpenCourseware
</h2>
<ul>
<li>
<a
href=
"#"
>
18.03: Differential Equations
</a>
</li>
</ul>
${get_course_about_section(course, "ocw_links")}
</section>
</section>
%endif
</section>
</section>
...
...
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