Change course listing to show course numbers + title

This commit is contained in:
David Ormsbee
2012-07-16 16:56:25 -04:00
parent e8516c5a3e
commit 27ec1b4dcf
3 changed files with 11 additions and 2 deletions

View File

@@ -24,7 +24,11 @@ class CourseDescriptor(SequenceDescriptor):
@property
def title(self):
self.metadata['display_name']
return self.metadata['display_name']
@property
def course_number(self):
return self.location.course
@property
def instructors(self):

View File

@@ -9,7 +9,7 @@
<header class="course-preview">
<a href="${reverse('about_course', args=[course.id])}">
<hgroup>
<h2>${course.get_about_section('title')}</h2>
<h2>${course.course_number} ${course.get_about_section('title')}</h2>
</hgroup>
<div class="info-link">&#x2794;</div>
</a>

View File

@@ -47,6 +47,10 @@
<section class="course-staff">
<h2>Course staff</h3>
${course.get_about_section("instructors")}
<!--
<article class="teacher">
<div class="teacher-image">
<img src="${static.url('images/anant.jpg')}" />
@@ -70,6 +74,7 @@
<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>
</article>
-->
</section>
<section class="requirements">