Commit 27ec1b4d by David Ormsbee

Change course listing to show course numbers + title

parent e8516c5a
...@@ -24,7 +24,11 @@ class CourseDescriptor(SequenceDescriptor): ...@@ -24,7 +24,11 @@ class CourseDescriptor(SequenceDescriptor):
@property @property
def title(self): def title(self):
self.metadata['display_name'] return self.metadata['display_name']
@property
def course_number(self):
return self.location.course
@property @property
def instructors(self): def instructors(self):
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<header class="course-preview"> <header class="course-preview">
<a href="${reverse('about_course', args=[course.id])}"> <a href="${reverse('about_course', args=[course.id])}">
<hgroup> <hgroup>
<h2>${course.get_about_section('title')}</h2> <h2>${course.course_number} ${course.get_about_section('title')}</h2>
</hgroup> </hgroup>
<div class="info-link">&#x2794;</div> <div class="info-link">&#x2794;</div>
</a> </a>
......
...@@ -47,6 +47,10 @@ ...@@ -47,6 +47,10 @@
<section class="course-staff"> <section class="course-staff">
<h2>Course staff</h3> <h2>Course staff</h3>
${course.get_about_section("instructors")}
<!--
<article class="teacher"> <article class="teacher">
<div class="teacher-image"> <div class="teacher-image">
<img src="${static.url('images/anant.jpg')}" /> <img src="${static.url('images/anant.jpg')}" />
...@@ -70,6 +74,7 @@ ...@@ -70,6 +74,7 @@
<h3>Piotr Mitros</h3> <h3>Piotr Mitros</h3>
<p>Research Scientist at MIT. His research focus is in finding ways to apply techniques from control systems to optimizing the learning process. Dr. Mitros has worked as an analog designer at Texas Instruments, Talking Lights, and most recently, designed the analog front end for a novel medical imaging modality for Rhythmia Medical.</p> <p>Research Scientist at MIT. His research focus is in finding ways to apply techniques from control systems to optimizing the learning process. Dr. Mitros has worked as an analog designer at Texas Instruments, Talking Lights, and most recently, designed the analog front end for a novel medical imaging modality for Rhythmia Medical.</p>
</article> </article>
-->
</section> </section>
<section class="requirements"> <section class="requirements">
......
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