Accordion distinguishes items to be graded
This commit is contained in:
@@ -98,7 +98,9 @@ def toc_for_course(user, request, course, active_chapter, active_section, course
|
||||
'url_name': section.url_name,
|
||||
'format': section.metadata.get('format', ''),
|
||||
'due': section.metadata.get('due', ''),
|
||||
'active': active})
|
||||
'active': active,
|
||||
'graded': section.metadata.get('graded', False),
|
||||
})
|
||||
|
||||
chapters.append({'display_name': chapter.display_name,
|
||||
'url_name': chapter.url_name,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<ul>
|
||||
% for section in chapter['sections']:
|
||||
<li${' class="active"' if 'active' in section and section['active'] else ''}>
|
||||
<li class="${'active' if 'active' in section and section['active'] else ''} ${'graded' if 'graded' in section and section['graded'] else ''}">
|
||||
<a href="${reverse('courseware_section', args=[course_id, chapter['url_name'], section['url_name']])}">
|
||||
<p>${section['display_name']}
|
||||
<span class="subtitle">
|
||||
|
||||
Reference in New Issue
Block a user