-
+

You haven't added any content to this course yet. diff --git a/cms/templates/js/publish-xblock.underscore b/cms/templates/js/publish-xblock.underscore index f9b30bcb38c1..18842491d7e2 100644 --- a/cms/templates/js/publish-xblock.underscore +++ b/cms/templates/js/publish-xblock.underscore @@ -2,17 +2,20 @@ var publishClasses = ""; var title = gettext("Draft (Never published)"); if (published) { - if (published && hasChanges) { - publishClasses = publishClasses + " is-draft"; + publishClasses = publishClasses + " is-published"; + if (hasChanges) { + publishClasses = publishClasses + " has-changes"; title = gettext("Draft (Unpublished changes)"); } else { - publishClasses = publishClasses + " is-published"; title = gettext("Published"); } } if (releaseDate) { publishClasses = publishClasses + " is-scheduled"; } +if (releasedToStudents) { + publishClasses = publishClasses + " is-released"; +} if (visibleToStaffOnly) { publishClasses = publishClasses + " is-staff-only"; title = gettext("Unpublished (Staff only)"); diff --git a/cms/templates/js/unit-outline.underscore b/cms/templates/js/unit-outline.underscore index 70d3cf4123f7..27fe5a01604e 100644 --- a/cms/templates/js/unit-outline.underscore +++ b/cms/templates/js/unit-outline.underscore @@ -1,3 +1,32 @@ +<% +var publishClasses = ""; +var title = gettext("Draft (Never published)"); +var published = xblockInfo.get('published'); +var hasChanges = xblockInfo.get('has_changes'); +var visibleToStaffOnly = false; +if (xblockInfo.get('published_on')) { + if (xblockInfo.get('has_changes')) { + publishClasses = publishClasses + " has-changes"; + } + publishClasses = publishClasses + " is-published"; +} +if (xblockInfo.get('released_to_students')) { + publishClasses = publishClasses + " is-released"; +} +if (visibleToStaffOnly) { + publishClasses = publishClasses + " is-staff-only"; +} + + +var listType = 'list-for-' + xblockType; +if (xblockType === 'course') { + listType = 'list-subsections'; +} else if (xblockType === 'section') { + listType = 'list-subsections'; +} else if (xblockType === 'subsection') { + listType = 'list-units'; +} +%> <% if (parentInfo) { %>

  • @@ -10,8 +39,10 @@
  • <% } %> -
      -
    +
    +
      +
    +
    <% if (childType) { %>