Merge pull request #12950 from edx/christina/studio-support-levels
Studio support level of components/xblocks
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
%>">
|
||||
<ul class="problem-type-tabs nav-tabs" tabindex='-1'>
|
||||
<li class="current">
|
||||
<a class="link-tab" href="#tab1"><%= gettext("Common Problem Types") %></a>
|
||||
<a class="link-tab" href="#tab1"><%- gettext("Common Problem Types") %></a>
|
||||
</li>
|
||||
<li>
|
||||
<a class="link-tab" href="#tab2"><%= gettext("Advanced") %></a>
|
||||
<a class="link-tab" href="#tab2"><%- gettext("Advanced") %></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab current" id="tab1">
|
||||
@@ -19,15 +19,17 @@
|
||||
<% if (templates[i].tab == "common") { %>
|
||||
<% if (!templates[i].boilerplate_name) { %>
|
||||
<li class="editor-md empty">
|
||||
<button type="button" class="button-component" data-category="<%= templates[i].category %>">
|
||||
<span class="name"><%= templates[i].display_name %></span>
|
||||
<button type="button" class="button-component" data-category="<%- templates[i].category %>">
|
||||
<%= HtmlUtils.HTML(support_indicator_template({support_level: templates[i].support_level})) %>
|
||||
<span class="name"><%- templates[i].display_name %></span>
|
||||
</button>
|
||||
</li>
|
||||
<% } else { %>
|
||||
<li class="editor-md">
|
||||
<button type="button" class="button-component" data-category="<%= templates[i].category %>"
|
||||
data-boilerplate="<%= templates[i].boilerplate_name %>">
|
||||
<span class="name"><%= templates[i].display_name %></span>
|
||||
<button type="button" class="button-component" data-category="<%- templates[i].category %>"
|
||||
data-boilerplate="<%- templates[i].boilerplate_name %>">
|
||||
<%= HtmlUtils.HTML(support_indicator_template({support_level: templates[i].support_level})) %>
|
||||
<span class="name"><%- templates[i].display_name %></span>
|
||||
</button>
|
||||
</li>
|
||||
<% } %>
|
||||
@@ -40,14 +42,16 @@
|
||||
<% for (var i = 0; i < templates.length; i++) { %>
|
||||
<% if (templates[i].tab == "advanced") { %>
|
||||
<li class="editor-manual">
|
||||
<button type="button" class="button-component" data-category="<%= templates[i].category %>"
|
||||
data-boilerplate="<%= templates[i].boilerplate_name %>">
|
||||
<span class="name"><%= templates[i].display_name %></span>
|
||||
<button type="button" class="button-component" data-category="<%- templates[i].category %>"
|
||||
data-boilerplate="<%- templates[i].boilerplate_name %>">
|
||||
<%= HtmlUtils.HTML(support_indicator_template({support_level: templates[i].support_level})) %>
|
||||
<span class="name"><%- templates[i].display_name %></span>
|
||||
</button>
|
||||
</li>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</ul>
|
||||
</div>
|
||||
<button class="cancel-button" data-type="<%= type %>"><%= gettext("Cancel") %></button>
|
||||
<button class="cancel-button" data-type="<%- type %>"><%- gettext("Cancel") %></button>
|
||||
<%= HtmlUtils.HTML(support_legend_template({support_legend: support_legend})) %>
|
||||
</div>
|
||||
|
||||
@@ -10,20 +10,23 @@
|
||||
<% for (var i = 0; i < templates.length; i++) { %>
|
||||
<% if (!templates[i].boilerplate_name) { %>
|
||||
<li class="editor-md empty">
|
||||
<button type="button" class="button-component" data-category="<%= templates[i].category %>">
|
||||
<span class="name"><%= templates[i].display_name %></span>
|
||||
<button type="button" class="button-component" data-category="<%- templates[i].category %>">
|
||||
<%= HtmlUtils.HTML(support_indicator_template({support_level: templates[i].support_level})) %>
|
||||
<span class="name"><%- templates[i].display_name %></span>
|
||||
</button>
|
||||
</li>
|
||||
<% } else { %>
|
||||
<li class="editor-md">
|
||||
<button type="button" class="button-component" data-category="<%= templates[i].category %>"
|
||||
data-boilerplate="<%= templates[i].boilerplate_name %>">
|
||||
<span class="name"><%= templates[i].display_name %></span>
|
||||
<button type="button" class="button-component" data-category="<%- templates[i].category %>"
|
||||
data-boilerplate="<%- templates[i].boilerplate_name %>">
|
||||
<%= HtmlUtils.HTML(support_indicator_template({support_level: templates[i].support_level})) %>
|
||||
<span class="name"><%- templates[i].display_name %></span>
|
||||
</button>
|
||||
</li>
|
||||
<% } %>
|
||||
<% } %>
|
||||
</ul>
|
||||
<button class="cancel-button" data-type="<%= type %>"><%= gettext("Cancel") %></button>
|
||||
<button class="cancel-button" data-type="<%- type %>"><%- gettext("Cancel") %></button>
|
||||
<%= HtmlUtils.HTML(support_legend_template({support_legend: support_legend})) %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<% if (support_legend.show_legend) { %>
|
||||
<span class="support-documentation">
|
||||
<a class="support-documentation-link"
|
||||
href="http://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/exercises_tools/create_exercises_and_tools.html#levels-of-support-for-tools" target="_blank">
|
||||
<%- support_legend.documentation_label %>
|
||||
</a>
|
||||
<span class="support-documentation-level">
|
||||
<span class="icon fa fa-circle" aria-hidden="true"></span>
|
||||
<span><%- gettext('Supported') %></span>
|
||||
</span>
|
||||
<span class="support-documentation-level">
|
||||
<span class="icon fa fa-adjust" aria-hidden="true"></span>
|
||||
<span><%- gettext('Provisional') %></span>
|
||||
</span>
|
||||
<% if (support_legend.allow_unsupported_xblocks) { %>
|
||||
<span class="support-documentation-level">
|
||||
<span class="icon fa fa-circle-o" aria-hidden="true"></span>
|
||||
<span><%- gettext('Not Supported') %></span>
|
||||
</span>
|
||||
<% } %>
|
||||
</span>
|
||||
<% } %>
|
||||
@@ -0,0 +1,10 @@
|
||||
<% if (support_level === "fs"){ %>
|
||||
<span class="icon support-level fa fa-circle" aria-hidden="true"></span>
|
||||
<span class="sr"><%- gettext('Fully Supported') %></span>
|
||||
<% } else if (support_level === "ps"){ %>
|
||||
<span class="icon support-level fa fa-adjust" aria-hidden="true"></span>
|
||||
<span class="sr"><%- gettext('Provisionally Supported') %></span>
|
||||
<% } else if (support_level === "us"){ %>
|
||||
<span class="icon support-level fa fa-circle-o" aria-hidden="true"></span>
|
||||
<span class="sr"><%- gettext('Not Supported') %></span>
|
||||
<% } %>
|
||||
Reference in New Issue
Block a user