Commit 66343884 by Victor Shnayder

pull ocw links from about/ocw_links.html

format should be
<ul>
<li>link</li>
<li>other link</li>
</ul>
parent 81ad9530
...@@ -101,6 +101,7 @@ def get_course_about_section(course, section_key): ...@@ -101,6 +101,7 @@ def get_course_about_section(course, section_key):
- textbook - textbook
- faq - faq
- more_info - more_info
- ocw_links
""" """
# Many of these are stored as html files instead of some semantic # Many of these are stored as html files instead of some semantic
...@@ -112,7 +113,7 @@ def get_course_about_section(course, section_key): ...@@ -112,7 +113,7 @@ def get_course_about_section(course, section_key):
'course_staff_short', 'course_staff_extended', 'course_staff_short', 'course_staff_extended',
'requirements', 'syllabus', 'textbook', 'faq', 'more_info', 'requirements', 'syllabus', 'textbook', 'faq', 'more_info',
'number', 'instructors', 'overview', 'number', 'instructors', 'overview',
'effort', 'end_date', 'prerequisites']: 'effort', 'end_date', 'prerequisites', 'ocw_links']:
try: try:
fs = course.system.resources_fs fs = course.system.resources_fs
......
...@@ -152,6 +152,9 @@ ...@@ -152,6 +152,9 @@
</ol> </ol>
</section> </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"> <section class="additional-resources">
<header> <header>
<h1>Additional Resources</h1> <h1>Additional Resources</h1>
...@@ -159,13 +162,10 @@ ...@@ -159,13 +162,10 @@
<section> <section>
<h2 class="opencourseware">MITOpenCourseware</h2> <h2 class="opencourseware">MITOpenCourseware</h2>
<ul> ${get_course_about_section(course, "ocw_links")}
<li>
<a href="#">18.03: Differential Equations</a>
</li>
</ul>
</section> </section>
</section> </section>
%endif
</section> </section>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment