Commit d534855b by Calen Pennington

Make the overview page pull data from the db, rather than static content

parent ea8ab0f8
...@@ -108,7 +108,11 @@ def course_index(request, org, course, name): ...@@ -108,7 +108,11 @@ def course_index(request, org, course, name):
'coursename' : name 'coursename' : name
}) })
course = modulestore().get_item(location)
weeks = course.get_children()
return render_to_response('overview.html', { return render_to_response('overview.html', {
'weeks': weeks,
'upload_asset_callback_url': upload_asset_callback_url 'upload_asset_callback_url': upload_asset_callback_url
}) })
......
...@@ -826,30 +826,6 @@ input.courseware-unit-search-input { ...@@ -826,30 +826,6 @@ input.courseware-unit-search-input {
} }
} }
.sequence-icon {
display: inline-block;
width: 15px;
height: 9px;
margin-right: 5px;
background: url(../img/sequence-icon.png) no-repeat;
}
.video-icon {
display: inline-block;
width: 14px;
height: 12px;
margin-right: 5px;
background: url(../img/video-icon.png) no-repeat;
}
.list-icon {
display: inline-block;
width: 14px;
height: 10px;
margin-right: 5px;
background: url(../img/list-icon.png) no-repeat;
}
.edit-icon { .edit-icon {
display: inline-block; display: inline-block;
width: 12px; width: 12px;
......
...@@ -4,62 +4,62 @@ ...@@ -4,62 +4,62 @@
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.videosequence a:first-child { .videosequence-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/videosequence.png'); background-image: url('../img/content-types/videosequence.png');
} }
.video a:first-child { .video-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/video.png'); background-image: url('../img/content-types/video.png');
} }
.problemset a:first-child { .problemset-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/problemset.png'); background-image: url('../img/content-types/problemset.png');
} }
.problem a:first-child { .problem-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/problem.png'); background-image: url('../img/content-types/problem.png');
} }
.lab a:first-child { .lab-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/lab.png'); background-image: url('../img/content-types/lab.png');
} }
.tab a:first-child { .tab-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/lab.png'); background-image: url('../img/content-types/lab.png');
} }
.html a:first-child { .html-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/html.png'); background-image: url('../img/content-types/html.png');
} }
.vertical a:first-child { .vertical-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/vertical.png'); background-image: url('../img/content-types/vertical.png');
} }
.sequential a:first-child { .sequential-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/sequential.png'); background-image: url('../img/content-types/sequential.png');
} }
.chapter a:first-child { .chapter-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/chapter.png'); background-image: url('../img/content-types/chapter.png');
} }
.module a:first-child { .module-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/module.png'); background-image: url('../img/content-types/module.png');
} }
.module a:first-child { .module-icon {
@extend .content-type; @extend .content-type;
background-image: url('../img/content-types/module.png'); background-image: url('../img/content-types/module.png');
} }
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