Commit 2a6a894c by Matthew Mongeau

Courses on homepage and courses page should iterate over the context courses.

parent 1c3e43de
...@@ -14,7 +14,9 @@ ...@@ -14,7 +14,9 @@
## I'm removing this for now since we aren't using it for the fall. ## I'm removing this for now since we aren't using it for the fall.
## <%include file="course_filter.html" /> ## <%include file="course_filter.html" />
<section class="courses"> <section class="courses">
<%include file="course.html" /> %for course in courses:
<%include file="course.html" args="course=course" />
%endfor
</section> </section>
</section> </section>
</section> </section>
...@@ -59,7 +59,9 @@ ...@@ -59,7 +59,9 @@
<section class="highlighted-courses"> <section class="highlighted-courses">
<h2>Explore courses from edX universities</h2> <h2>Explore courses from edX universities</h2>
<section class="courses"> <section class="courses">
<%include file="course.html" /> %for course in courses:
<%include file="course.html" args="course=course" />
%endfor
</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