Commit 75e9ef12 by Bridger Maxwell

The dashboard links to the about page for courses that haven't started yet.

parent 4ef84cb9
...@@ -36,14 +36,20 @@ ...@@ -36,14 +36,20 @@
% for course in courses: % for course in courses:
<article class="my-course"> <article class="my-course">
<a href="${reverse('info', args=[course.id])}" class="cover" style="background-image: url('${course_image_url(course)}')"> <%
if course.has_started():
course_target = reverse('info', args=[course.id])
else:
course_target = reverse('about_course', args=[course.id])
%>
<a href="${course_target}" class="cover" style="background-image: url('${course_image_url(course)}')">
<div class="shade"></div> <div class="shade"></div>
<div class="arrow"></div> <div class="arrow"></div>
</a> </a>
<section class="info"> <section class="info">
<hgroup> <hgroup>
<a href="#" class="university">${get_course_about_section(course, 'university')}</a> <a href="#" class="university">${get_course_about_section(course, 'university')}</a>
<h3><a href="${reverse('info', args=[course.id])}">${get_course_about_section(course, "title")}</a></h3> <h3><a href="${course_target}">${get_course_about_section(course, "title")}</a></h3>
</hgroup> </hgroup>
<section class="course-status"> <section class="course-status">
<p>Class Starts - <span>9/2/2012</span></div> <p>Class Starts - <span>9/2/2012</span></div>
......
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