STUD-1856 Display "IS VISIBLE TO" when released and published Reword staff lock prompt and notifications Change "View Published Version" to "View Live Version" Change "Unit Tree Location" to "Unit Location in Course" Switch live content warning based on unpublished changes Reword discard changes confirmation prompt Reword unit location tip Add "Edit the name" popup text for sections and subsections Fix popup text for section and subsection titles Add popup text for new section, subsection, and unit buttons Reword popup for View Live button and add tests Reword notification when removing staff lock Update MessageView when has_changes changed Change "Published" to "Published (not yet released)" Change "Unpublished (Staff only)" to "Visible to Staff Only"
81 lines
3.8 KiB
Plaintext
81 lines
3.8 KiB
Plaintext
<% if (parentInfo) { %>
|
|
<li class="outline-item outline-item-<%= xblockType %> <%= includesChildren ? 'is-collapsible' : '' %> is-draggable <%= isCollapsed ? 'is-collapsed' : '' %>"
|
|
data-parent="<%= parentInfo.get('id') %>" data-locator="<%= xblockInfo.get('id') %>">
|
|
<span class="draggable-drop-indicator draggable-drop-indicator-before"><i class="icon-caret-right"></i></span>
|
|
|
|
<div class="wrapper-xblock-header">
|
|
<div class="wrapper-xblock-header-primary">
|
|
<% if (includesChildren) { %>
|
|
<h3 class="xblock-title expand-collapse <%= isCollapsed ? 'expand' : 'collapse' %>"
|
|
title="<%= interpolate(gettext('Collapse/Expand this %(xblock_type)s'), { xblock_type: xblockTypeDisplayName }, true) %>">
|
|
<i class="icon-caret-down ui-toggle-expansion"></i>
|
|
<% } else { %>
|
|
<h3 class="xblock-title">
|
|
<% } %>
|
|
|
|
<% if (xblockInfo.get('studio_url') && xblockInfo.get('category') !== 'chapter') { %>
|
|
<a href="<%= xblockInfo.get('studio_url') %>"><%= xblockInfo.get('display_name') %></a>
|
|
<% } else { %>
|
|
<span class="wrapper-xblock-field is-editable" data-field="display_name">
|
|
<span class="xblock-field-value"><%= xblockInfo.get('display_name') %></span>
|
|
</span>
|
|
<% } %>
|
|
</h3>
|
|
|
|
<div class="item-actions">
|
|
<ul class="actions-list">
|
|
<li class="action-item action-delete">
|
|
<a href="#" data-tooltip="<%= gettext('Delete') %>" class="delete-button action-button">
|
|
<i class="icon-remove"></i>
|
|
<span class="sr"><%= gettext('Delete') %></span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="wrapper-xblock-header-secondary">
|
|
<% if (xblockInfo.get('release_date')) { %>
|
|
<div class="meta-info">
|
|
<i class="icon-time"></i>
|
|
<%= gettext('Released:') %> <%= xblockInfo.get('release_date') %>
|
|
</div>
|
|
<% } %>
|
|
|
|
|
|
<div class="item-actions">
|
|
<ul class="actions-list">
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
<% if (!parentInfo && xblockInfo.get('child_info') && xblockInfo.get('child_info').children.length === 0) { %>
|
|
<div class="no-content add-xblock-component">
|
|
<p><%= gettext("You haven't added any content to this course yet.") %>
|
|
<a href="#" class="button button-new" data-category="<%= childCategory %>"
|
|
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
|
|
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" >
|
|
<i class="icon-plus"></i><%= addChildLabel %>
|
|
</a>
|
|
</p>
|
|
</div>
|
|
<% } else { %>
|
|
<ol class="sortable-list sortable-<%= xblockType %>-list">
|
|
</ol>
|
|
|
|
<% if (childType) { %>
|
|
<div class="add-xblock-component">
|
|
<a href="#" class="button button-new" data-category="<%= childCategory %>"
|
|
data-parent="<%= xblockInfo.get('id') %>" data-default-name="<%= defaultNewChildName %>"
|
|
title="<%= interpolate(gettext('Click to add a new %(xblock_type)s'), { xblock_type: defaultNewChildName }, true) %>" >
|
|
<i class="icon-plus"></i><%= addChildLabel %>
|
|
</a>
|
|
</div>
|
|
<% } %>
|
|
<% } %>
|
|
|
|
<% if (parentInfo) { %>
|
|
<span class="draggable-drop-indicator draggable-drop-indicator-after"><i class="icon-caret-right"></i></span>
|
|
</li>
|
|
<% } %>
|