Files
edx-platform/cms/templates/js/subsection-share-link-modal-tabs.underscore
Bryann Valderrama 19bc5c802c feat: add share link button when hide from toc is enabled in sections (#34043)
* feat: add share link modal when hide from toc is enabled

Adds a new button in the child subsections of sections with Hide From TOC enabled.
This button displays a new modal with two tabs. The first tab displays a button
that allows you to copy the link of that subsection to the clipboard. The second
tab displays a button that allows you to copy the embedded link of the same
subsection to the clipboard.

Ref: https://openedx.atlassian.net/wiki/spaces/OEPM/pages/3853975595/Feature+Enhancement+Proposal+Hide+Sections+from+course+outline
2024-03-07 14:12:17 -04:00

11 lines
404 B
Plaintext

<ul class="subsection-share-link-tabs-header">
<% _.each(tabs, function(tab) { %>
<li class="subsection-share-link-tab-buttons">
<button type="button" class="subsection-share-link-tab-button" data-tab="<%- tab.name %>"><%- tab.displayName %></button>
</li>
<% }); %>
</ul>
<% _.each(tabs, function(tab) { %>
<div class='subsection-share-link-tab <%- tab.name %>'></div>
<% }); %>