From a8e7f12b9f7f826cc438ffed40fc3328e51832f9 Mon Sep 17 00:00:00 2001 From: Matthew Mongeau Date: Thu, 19 Jul 2012 10:48:35 -0400 Subject: [PATCH] Fix display of courses on university profile pages. --- lms/static/sass/shared/_course_object.scss | 11 +++++++++++ lms/templates/university_profile/base.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/lms/static/sass/shared/_course_object.scss b/lms/static/sass/shared/_course_object.scss index dd772b96c4..7400a48966 100644 --- a/lms/static/sass/shared/_course_object.scss +++ b/lms/static/sass/shared/_course_object.scss @@ -206,4 +206,15 @@ } } } + + .university-courses { + .course { + width: flex-grid(4); + margin-right: flex-gutter(); + float: left; + &:nth-child(3n+3) { + margin-right: 0; + } + } + } } diff --git a/lms/templates/university_profile/base.html b/lms/templates/university_profile/base.html index 5ee75b6087..a2bb7ff230 100644 --- a/lms/templates/university_profile/base.html +++ b/lms/templates/university_profile/base.html @@ -10,7 +10,7 @@ <%block name="university_description" /> -
+
%for course in courses: <%include file="../course.html" args="course=course" /> %endfor