From bd87b218ce6c82102b63801e608bd8e69c15bff9 Mon Sep 17 00:00:00 2001 From: Gregory Martin Date: Thu, 22 Dec 2016 14:16:17 -0500 Subject: [PATCH] Fix PR 14078; fix course home regression --- lms/templates/course.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/lms/templates/course.html b/lms/templates/course.html index 5ae2774d79..8ff8b44695 100644 --- a/lms/templates/course.html +++ b/lms/templates/course.html @@ -19,27 +19,27 @@ from django.core.urlresolvers import reverse ${course.display_number_with_default} ${course.display_name_with_default} - <% - if course.start is not None: - course_date_string = course.start.strftime('%Y-%m-%dT%H:%M:%S%z') - else: - course_date_string = '' - %> - % if isinstance(course_start_date, str): - + <% + if course.start is not None: + course_date_string = course.start.strftime('%Y-%m-%dT%H:%M:%S%z') + else: + course_date_string = '' + %> + % if course.advertised_start is not None: + % else: % endif - +