diff --git a/lms/templates/courseware/accordion.html b/lms/templates/courseware/accordion.html index 161109ba6b..825430c122 100644 --- a/lms/templates/courseware/accordion.html +++ b/lms/templates/courseware/accordion.html @@ -33,10 +33,37 @@ else: formatted_string = get_time_display(section['due'], due_date_display_format, coerce_tz=settings.TIME_ZONE_DISPLAYED_FOR_DEADLINES) due_date = '' if len(formatted_string)==0 else _('due {date}').format(date=formatted_string) %> -
${section['format']} ${due_date}
- % if 'graded' in section and section['graded']: - - This content is graded + + ## There is behavior differences between + ## rending of sections which have proctoring/timed examinations + ## and those that do not. + ## + ## Proctoring exposes a exam status message field as well as + ## a status icon + + % if section['format'] or due_date or 'proctoring' in section: ++ % if 'proctoring' in section: + ## Display the proctored exam status icon and status message + + ${section['proctoring'].get('short_description', '')} + + ## completed proctored exam statuses should not show the due date + ## since the exam has already been submitted by the user + % if not section['proctoring'].get('in_completed_state', False): + ${due_date} + % endif + % else: + ## non-proctored section, we just show the exam format and the due date + ## this is the standard case in edx-platform + ${section['format']} ${due_date} + + % if 'graded' in section and section['graded']: + + ${_("This content is graded")} + % endif + % endif +
% endif @@ -47,4 +74,4 @@ else: % for chapter in toc: ${make_chapter(chapter)} -% endfor \ No newline at end of file +% endfor