Implement course handouts

LEARNER-607
This commit is contained in:
Andy Armstrong
2017-04-24 15:29:34 -04:00
parent e7e7b3bc15
commit 25229a741b
6 changed files with 32 additions and 14 deletions

View File

@@ -278,7 +278,7 @@ def get_course_info_section(request, user, course, section_key):
html = ''
if info_module is not None:
try:
html = info_module.render(STUDENT_VIEW).content
html = info_module.render(STUDENT_VIEW).content.strip()
except Exception: # pylint: disable=broad-except
html = render_to_string('courseware/error-message.html', None)
log.exception(

View File

@@ -11,8 +11,6 @@
padding: 0 ($baseline * 2);
&:not(:first-child) {
border-top: 1px solid $lms-border-color;
.section-name {
margin-top: $baseline;
}

View File

@@ -149,3 +149,7 @@
}
}
}
.section:not(:first-child) {
margin-top: $baseline;
}