Mark components like libraryv2 and problem bank beta in API to be used by both legacy templates and new authoring mfe. Also updates order of components.
13 lines
592 B
Plaintext
13 lines
592 B
Plaintext
<% if (type === 'advanced' || templates.length > 1) { %>
|
|
<button type="button" class="multiple-templates add-xblock-component-button" data-type="<%- type %>">
|
|
<% } else { %>
|
|
<button type="button" class="single-template add-xblock-component-button" data-type="<%- type %>" data-category="<%- templates[0].category %>">
|
|
<% } %>
|
|
<span class="large-template-icon large-<%- type %>-icon"></span>
|
|
<span class="sr"> <%- gettext("Add Component:") %></span>
|
|
<span class="name"><%- display_name %></span>
|
|
<% if (beta) { %>
|
|
<span class="beta"><%- gettext("Beta") %></span>
|
|
<% } %>
|
|
</button>
|