<% var title = gettext("Draft (Never published)"); if (visibilityState === 'staff_only') { title = gettext("Visible to Staff Only"); } else if (visibilityState === 'live') { title = gettext("Published and Live"); } else if (published && !hasChanges) { title = gettext("Published (not yet released)"); } else if (published && hasChanges) { title = gettext("Draft (Unpublished changes)"); } var releaseLabel = gettext("Release:"); if (visibilityState === 'live') { releaseLabel = gettext("Released:"); } else if (visibilityState === 'ready') { releaseLabel = gettext("Scheduled:"); } var visibleToStaffOnly = visibilityState === 'staff_only'; %>

<%- gettext("Publishing Status") %> <%- title %>

<% if (hasChanges && editedOn && editedBy) { %> <%= HtmlUtils.interpolateHtml( gettext("Draft saved on {lastSavedStart}{editedOn}{lastSavedEnd} by {editedByStart}{editedBy}{editedByEnd}"), { lastSavedStart: HtmlUtils.HTML(''), editedOn: editedOn, lastSavedEnd: HtmlUtils.HTML(''), editedByStart: HtmlUtils.HTML(''), editedBy: editedBy, editedByEnd: HtmlUtils.HTML('') } ) %> <% } else if (publishedOn && publishedBy) { %> <%= HtmlUtils.interpolateHtml( gettext("Last published {lastPublishedStart}{publishedOn}{lastPublishedEnd} by {publishedByStart}{publishedBy}{publishedByEnd}"), { lastPublishedStart: HtmlUtils.HTML(''), publishedOn: publishedOn, lastPublishedEnd: HtmlUtils.HTML(''), publishedByStart: HtmlUtils.HTML(''), publishedBy: publishedBy, publishedByEnd: HtmlUtils.HTML('') } ) %> <% } else { %> <%- gettext("Previously published") %> <% } %>

<% if (!course.get('self_paced')) { %>
<%- releaseLabel %>

<% if (releaseDate) { %> <%- releaseDate %> <%- interpolate( gettext('with %(release_date_from)s'), { release_date_from: releaseDateFrom }, true ) %> <% } else { %> <%- gettext("Unscheduled") %> <% } %>

<% } %>
<% if (released && published && !hasChanges) { %> <%- gettext("Is Visible To:") %> <% } else { %> <%- gettext("Will Be Visible To:") %> <% } %>
<% if (visibleToStaffOnly) { %>

<%- gettext("Staff Only") %> <% if (!hasExplicitStaffLock) { %> <%- interpolate( gettext("with %(section_or_subsection)s"),{ section_or_subsection: staffLockFrom }, true ) %> <% } %>

<% } else { %>

<%- gettext("Staff and Learners") %>

<% } %>

<%- gettext("Note: Do not hide graded assignments after they have been released.") %>