1. Current code uses type name as the display names for XBlock buttons, so the name of these five buttons can't be localized. This fix contains code that adds a 'display_name' field for the buttons, and makes their names localizable. 2. The display names of components in advanced, html and problem types can be localized now.
9 lines
370 B
Plaintext
9 lines
370 B
Plaintext
<% if (type === 'advanced' || templates.length > 1) { %>
|
|
<a href="#" class="multiple-templates" data-type="<%= type %>">
|
|
<% } else { %>
|
|
<a href="#" class="single-template" data-type="<%= type %>" data-category="<%= templates[0].category %>">
|
|
<% } %>
|
|
<span class="large-template-icon large-<%= type %>-icon"></span>
|
|
<span class="name"><%= display_name %></span>
|
|
</a>
|