Commit 09a3bc01 by Chris Dodge

show the organization, course number, course run in the course listing page in CMS

parent aa0cda96
......@@ -54,6 +54,9 @@ def index(request):
course.location,
course_id=course.location.course_id,
),
course.display_org_with_default,
course.display_number_with_default,
course.location.name
)
return render_to_response('index.html', {
......
......@@ -330,10 +330,15 @@ body.dashboard {
.class-name {
display: block;
font-size: 19px;
font-size: 22px;
font-weight: 300;
}
.class-listing-info {
color: #989898;
margin-right: 15px;
}
.detail {
font-size: 14px;
font-weight: 400;
......
......@@ -133,10 +133,13 @@
%if len(courses) > 0:
<div class="courses">
<ul class="list-courses">
%for course, url, lms_link in sorted(courses, key=lambda s: s[0].lower() if s[0] is not None else ''):
%for course, url, lms_link, org, num, run in sorted(courses, key=lambda s: s[0].lower() if s[0] is not None else ''):
<li class="course-item">
<a class="class-link" href="${url}" class="class-name">
<span class="class-name">${course}</span>
<span class="class-listing-info class-org"><label>${_("Organization")}:&nbsp;${org}</label></span>
<span class="class-listing-info class-num"><label>${_("Course Number")}:&nbsp;</label>${num}</span>
<span class="class-listing-info class-run"><label>${_("Course Run")}:&nbsp;</label>${run}</span>
</a>
<a href="${lms_link}" rel="external" class="button view-button view-live-button">${_("View Live")}</a>
</li>
......
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