Add override notice to progress page

This commit is contained in:
Tyler Hallada
2017-08-03 16:17:37 -04:00
parent 503aff2518
commit 05de4a485b
2 changed files with 10 additions and 0 deletions

View File

@@ -130,6 +130,7 @@ class SubsectionGrade(SubsectionGradeBase):
graded=False,
first_attempted=model.first_attempted,
)
self.override = model.override if hasattr(model, 'override') else None
self._log_event(log.debug, u"init_from_model", student)
return self

View File

@@ -183,6 +183,15 @@ from django.utils.http import urlquote_plus
<em class="localized-datetime" data-datetime="${section.due}" data-string="${_('due {date}')}" data-timezone="${user_timezone}" data-language="${user_language}"></em>
%endif
</p>
<p>
%if section.override is not None:
%if section.format is not None and section.format == "Exam":
${_("Exam grade has been overridden due to a failed proctoring review.")}
%else
${_("Section grade has been overridden.")}
%endif
%endif
</p>
%if len(section.problem_scores.values()) > 0:
%if section.show_grades(staff_access):
<dl class="scores">