<% 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) { %>
  • <% if (includesChildren) { %>

    <% } else { %>

    <% } %> <% if (xblockInfo.isVertical()) { %> <%= xblockInfo.get('display_name') %> <% } else { %> "> <%= xblockInfo.get('display_name') %> <% } %>

    <% if (!xblockInfo.isVertical()) { %>

    <%= 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') %> <% } %>

    <% if (xblockInfo.get('due_date') || xblockInfo.get('graded')) { %>

    <%= gettext('Graded as:') %> <%= gradingType %> <% if (xblockInfo.get('due_date')) { %> <%= gettext('Due:') %> <%= xblockInfo.get('due_date') %> <% } %>

    <% } %> <% } %> <% if (statusMessage) { %>

    <%- statusMessage %>

    <% } %>
    <% } %> <% if (!parentInfo && xblockInfo.get('child_info') && xblockInfo.get('child_info').children.length === 0) { %>

    <%= gettext("You haven't added any content to this course yet.") %> <%= addChildLabel %>

    <% } else if (!xblockInfo.isVertical()) { %>
    <% if (childType) { %> <% } %>
    <% } %> <% if (parentInfo) { %>
  • <% } %>