% var releasedToStudents = xblockInfo.get('released_to_students'); var visibilityState = xblockInfo.get('visibility_state'); var published = xblockInfo.get('published'); var statusMessage = null; var statusType = null; if (staffOnlyMessage) { statusType = 'staff-only'; statusMessage = gettext('Contains staff only content'); } else if (visibilityState === 'needs_attention') { if (xblockInfo.isVertical()) { statusType = 'warning'; if (published && releasedToStudents) { statusMessage = gettext('Unpublished changes to live content'); } else if (!published) { statusMessage = gettext('Unpublished units will not be released'); } else { statusMessage = gettext('Unpublished changes to content that will release in the future'); } } } var statusIconClass = ''; if (statusType === 'warning') { statusIconClass = 'fa-file-o'; } else if (statusType === 'error') { statusIconClass = 'fa-warning'; } else if (statusType === 'staff-only') { statusIconClass = 'fa-lock'; } var gradingType = gettext('Not Graded'); if (xblockInfo.get('graded')) { gradingType = xblockInfo.get('format') } %> <% if (parentInfo) { %>
<%= gettext('Release Status:') %> <% if (xblockInfo.get('released_to_students')) { %> <%= gettext('Released:') %> <% } else if (xblockInfo.get('release_date')) { %> <%= gettext('Scheduled:') %> <% } else { %> <%= gettext('Unscheduled') %> <% } %> <% if (xblockInfo.get('release_date')) { %> <%= xblockInfo.get('release_date') %> <% } %>
<%= gettext('Graded as:') %> <%= gradingType %> <% if (xblockInfo.get('due_date')) { %> <%= gettext('Due:') %> <%= xblockInfo.get('due_date') %> <% } %>
<%= gettext("You haven't added any content to this course yet.") %> <%= addChildLabel %>