pull ocw links from about/ocw_links.html
format should be <ul> <li>link</li> <li>other link</li> </ul>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user