${section['display_name']} ${', current section' if 'active' in section and section['active'] else ''}
<%
if section.get('due') is None:
due_date = ''
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)
%>
## 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}
% endif
% endif
% if 'graded' in section and section['graded']:
## sections that are graded should indicate this through an icon
% endif