Revert "feat: Tag List on Unit page (feature-flagged) (#33645)" (#33740)

This reverts commit 104d42c67a.
This commit is contained in:
Rebecca Graber
2023-11-17 15:12:47 -05:00
committed by GitHub
parent c240fd8b52
commit c66ed87f65
13 changed files with 44 additions and 501 deletions

View File

@@ -213,10 +213,7 @@ from openedx.core.djangolib.markup import HTML, Text
)}</span>
</p>
</div>
</div>
% if show_unit_tags:
<div class="unit-tags is-hidden"></div>
% endif
</div>
% endif
</aside>
</section>
@@ -241,7 +238,4 @@ from openedx.core.djangolib.markup import HTML, Text
</div>
</div>
</div>
<div id="manage-tags-drawer" class="drawer"></div>
<div class="drawer-cover"></div>
</%block>

View File

@@ -1,32 +0,0 @@
<% if (tags !== null) { %>
<div class="wrapper wrapper-tags">
<div class="wrapper-tag-header" tabindex=0 role="button" aria-controls="tag-list-content" aria-expanded=false>
<span>
<span class="tag-title label">
<%- gettext("Tags") %>
</span>
<span class="count-badge">
<%- tags.count %>
</span>
</span>
<span class="icon fa fa-caret-down" aria-hidden="true"></span>
</div>
<div class="wrapper wrapper-tag-content is-hidden" id="tag-list-content">
<div class="content-taxonomies">
<% for (var i = 0; i < tags.taxonomies.length; i++) {
var taxonomy = tags.taxonomies[i];
%>
<div class="tagging-label tagging-label-tax-<%- taxonomy.id %>" id="tax-<%- taxonomy.id %>" tabindex=0 role="button" aria-controls="content-tags-tax-<%- taxonomy.id %>" aria-expanded=false>
<span class="tagging-label-value" id="tax-<%- taxonomy.id %>"><%- taxonomy.value %></span>
<span class="tagging-label-count" id="tax-<%- taxonomy.id %>">(<%- taxonomy.count %>)</span>
<span class="icon fa fa-caret-down" aria-hidden="true" id="tax-<%- taxonomy.id %>"></span>
</div>
<div class="content-tags-tax-<%- taxonomy.id %> is-hidden" id="content-tags-tax-<%- taxonomy.id %>"></div>
<% } %>
</div>
<a class="action-primary manage-tag-button" tabindex=0 role="button">
<%- gettext("Manage tags") %>
</a>
</div>
</div>
<% } %>

View File

@@ -7,14 +7,13 @@ from lms.lib.utils import is_unit
from openedx.core.djangolib.js_utils import (
dump_js_escaped_json, js_escaped_string
)
from cms.djangoapps.contentstore.toggles import use_new_text_editor, use_new_problem_editor, use_new_video_editor, use_video_gallery_flow, use_tagging_taxonomy_list_page
from cms.djangoapps.contentstore.toggles import use_new_text_editor, use_new_problem_editor, use_new_video_editor, use_video_gallery_flow
%>
<%
use_new_editor_text = use_new_text_editor()
use_new_editor_video = use_new_video_editor()
use_new_editor_problem = use_new_problem_editor()
use_new_video_gallery_flow = use_video_gallery_flow()
use_tagging = use_tagging_taxonomy_list_page()
xblock_url = xblock_studio_url(xblock)
show_inline = xblock.has_children and not xblock_url
section_class = "level-nesting" if show_inline else "level-element"
@@ -119,11 +118,6 @@ block_is_unit = is_unit(xblock)
<a class="duplicate-button" href="#" role="button">${_("Duplicate")}</a>
</li>
% endif
% if use_tagging:
<li class="nav-item">
<a class="tags-button" href="#" role="button">${_("Manage tags")}</a>
</li>
% endif
% if can_move:
<li class="nav-item">
<a class="move-button" href="#" role="button">${_("Move")}</a>