add-xblock-component-button.underscore 511 Bytes
Newer Older
1
<% if (type === 'advanced' || templates.length > 1) { %>
2
<button type="button" class="multiple-templates add-xblock-component-button" data-type="<%= type %>">
3
<% } else { %>
4
<button type="button" class="single-template add-xblock-component-button" data-type="<%= type %>" data-category="<%= templates[0].category %>">
5 6
<% } %>
  <span class="large-template-icon large-<%= type %>-icon"></span>
7
  <span class="sr"> <%= gettext("Add Component:") %></span>
8
  <span class="name"><%= display_name %></span>
9
</button>