Files
edx-platform/lms/templates/studio_render_children_view.html
Braden MacDonald 8ee1f66ffb feat: Paste Components (OLX) into any Unit in Studio (#31969)
* feat: Implement paste button

* chore: improve docs and add tests for python API

* fix: drive-by fix to use a better API for comparing XML

* feat: track which XBlock something was copied from

* feat: add tests

* feat: enable import linter so content_staging's public API is respected

* fix: error seen when trying to paste drag-and-drop-v2 blocks

* fix: use strip_text=True consistently for XML comparisons

* refactor: rename get_user_clipboard_status to get_user_clipboard

* feat: Better error reporting when pasting in Studio

* chore: convert new test suite to pytest assertions

* refactor: push READY status check into the API per review suggestion

* fix: use strip_text=True consistently for XML comparisons

* fix: store "copied_from_block" as a string to avoid Reference field issues

* fix: minor lint error

* refactor: move data types to data.py per OEP-49
2023-04-27 09:58:04 -07:00

20 lines
545 B
HTML

<%! from django.utils.translation import gettext as _ %>
% if can_reorder:
<ol class="reorderable-container">
% endif
% for item in items:
${item['content']}
% endfor
% if can_reorder:
</ol>
% endif
% if can_add:
<div class="add-xblock-component new-component-item adding"></div>
<div class="paste-component" style="display: none;">
<button type="button" class="button paste-component-button">
<span class="icon fa fa-paste" aria-hidden="true"></span>
${_('Paste Component')}
</button>
</div>
% endif