Change course listing to show course numbers + title
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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">➔</div>
|
||||
</a>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user