Commit bba03a51 by cahrens

Show "Not Graded" for non-graded content with due date.

parent d514f363
......@@ -30,6 +30,11 @@ if (statusType === 'warning') {
} else if (statusType === 'staff-only') {
statusIconClass = 'icon-lock';
}
var gradingType = gettext('Not Graded');
if (xblockInfo.get('graded')) {
gradingType = xblockInfo.get('format')
}
%>
<% if (parentInfo) { %>
<li class="outline-item outline-<%= xblockType %> <%= visibilityClass %> is-draggable <%= includesChildren ? 'is-collapsible' : '' %> <%= isCollapsed ? 'is-collapsed' : '' %>"
......@@ -108,7 +113,7 @@ if (statusType === 'warning') {
<p>
<span class="sr status-grading-label"> <%= gettext('Graded as:') %> </span>
<i class="icon icon-ok"></i>
<span class="status-grading-value"> <%= xblockInfo.get('format') %> </span>
<span class="status-grading-value"> <%= gradingType %> </span>
<% if (xblockInfo.get('due_date')) { %>
<span class="status-grading-date"> <%= gettext('Due:') %> <%= xblockInfo.get('due_date') %> </span>
<% } %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment