Skip to content
Snippets Groups Projects
Commit 75e9ef12 authored by Bridger Maxwell's avatar Bridger Maxwell
Browse files

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

parent 4ef84cb9
No related merge requests found
......@@ -36,14 +36,20 @@
% for course in courses:
<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="arrow"></div>
</a>
<section class="info">
<hgroup>
<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>
<section class="course-status">
<p>Class Starts - <span>9/2/2012</span></div>
......
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