From 75e9ef12b6ece40da84ee68914eac022c0de16b3 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Wed, 18 Jul 2012 15:53:24 -0400 Subject: [PATCH] The dashboard links to the about page for courses that haven't started yet. --- lms/templates/dashboard.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index caf28d920b..2c61770371 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -36,14 +36,20 @@ % for course in courses:
- + <% + if course.has_started(): + course_target = reverse('info', args=[course.id]) + else: + course_target = reverse('about_course', args=[course.id]) + %> +
${get_course_about_section(course, 'university')} -

${get_course_about_section(course, "title")}

+

${get_course_about_section(course, "title")}

Class Starts - 9/2/2012