10 lines
511 B
Plaintext
10 lines
511 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>
|
|
</button>
|