Commit 373db870 by David Ormsbee

Add number property to CourseDescriptor and switch templates to use it.

parent 27ec1b4d
......@@ -27,7 +27,7 @@ class CourseDescriptor(SequenceDescriptor):
return self.metadata['display_name']
@property
def course_number(self):
def number(self):
return self.location.course
@property
......
......@@ -9,7 +9,7 @@
<header class="course-preview">
<a href="${reverse('about_course', args=[course.id])}">
<hgroup>
<h2>${course.course_number} ${course.get_about_section('title')}</h2>
<h2>${course.number} ${course.get_about_section('title')}</h2>
</hgroup>
<div class="info-link">&#x2794;</div>
</a>
......
......@@ -11,7 +11,7 @@
<div class="intro-inner-wrapper">
<section class="intro">
<hgroup>
<h1>${course.get_about_section("title")}</h1><h2><a href="#">${course.get_about_section("university")}</a></h2>
<h1>${course.number}: ${course.get_about_section("title")}</h1><h2><a href="#">${course.get_about_section("university")}</a></h2>
</hgroup>
<div class="main-cta">
......
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