Moved more pieces of the about page to live in the course data directory.

This commit is contained in:
Bridger Maxwell
2012-06-28 12:58:04 -04:00
parent fc1eeb08e3
commit 3386031fea
2 changed files with 5 additions and 15 deletions

View File

@@ -67,6 +67,9 @@ class Course(namedtuple('Course', _FIELDS)):
- more_info
"""
# Many of these are stored as html files instead of some semantic markup. This can change without effecting
# 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']:
try:

View File

@@ -47,7 +47,7 @@
<section class="main-content-wrap">
<div class="video">
<iframe width="560" height="315" src="http://www.youtube.com/embed/p2Q6BrNhdh8" frameborder="0" allowfullscreen></iframe>
${course.get_about_section("video")}
</div>
<section class="course-description">
@@ -98,20 +98,7 @@
<section class="faq tab">
<h3>Frequently Asked Questions</h3>
<ul>
<li>What is the format of the class?
<p>The course will consist of 24 lectures, each lasting 50 minutes. There will be regular assignments consisting of map tests and short essays.</p>
</li>
<li>Are there any prerequisites?
<p>No - anyone and everyone is welcome to take this course.</p>
</li>
<li>What textbook should I buy?
<p>Although the lectures are designed to be self-contained, we recommend (but do not require) that students refer to the book Worlds Together, Worlds Apart: A History of the World: From 1000 CE to the Present (W W Norton, 3rd edition) -- Volume II, which was written specifically for this course.</p>
</li>
<li>Does Harvard award credentials or reports regarding my work in this course?
<p>Princeton does not award credentials or issue reports for student work in this course. However, Coursera could maintain a record of your score on the assessments and, with your permission, verify that score for authorized parties.</p>
</li>
</ul>
${course.get_about_section("faq")}
</section>
<section class="more-info tab">