From 66343884dc9bcbda25601e89b5960ae416f09202 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Thu, 13 Sep 2012 10:22:02 -0400 Subject: [PATCH] pull ocw links from about/ocw_links.html format should be --- lms/djangoapps/courseware/courses.py | 3 ++- lms/templates/portal/course_about.html | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lms/djangoapps/courseware/courses.py b/lms/djangoapps/courseware/courses.py index f9467cfa91..4383396678 100644 --- a/lms/djangoapps/courseware/courses.py +++ b/lms/djangoapps/courseware/courses.py @@ -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 diff --git a/lms/templates/portal/course_about.html b/lms/templates/portal/course_about.html index bc15e16f5e..a74bf1a9ef 100644 --- a/lms/templates/portal/course_about.html +++ b/lms/templates/portal/course_about.html @@ -152,6 +152,9 @@ + + ## For now, ocw links are the only thing that goes in additional resources + % if get_course_about_section(course, "ocw_links"):

Additional Resources

@@ -159,13 +162,10 @@

MITOpenCourseware

- + ${get_course_about_section(course, "ocw_links")}
+ %endif