feat: Tag count in components on Studio Unit page(#33928)

This commit is contained in:
Chris Chávez
2024-01-12 12:35:23 -05:00
committed by GitHub
parent 019888f3d1
commit 90879d167f
8 changed files with 75 additions and 7 deletions

View File

@@ -99,6 +99,15 @@ block_is_unit = is_unit(xblock)
<ul class="actions-list nav-dd ui-right">
% if not is_root:
% if can_edit:
% if use_tagging and tags_count:
<li class="action-item">
<button data-tooltip="${_("Manage Tags")}" class="btn-default action-button manage-tags-button" data-testid="tag-count-button">
<span class="icon fa fa-tag" aria-hidden="true"></span>
<span>${tags_count}</span>
<span class="sr action-button-text">${_("Manage Tags")}</span>
</button>
</li>
% endif
% if not show_inline:
<li class="action-item action-edit">
<button class="btn-default edit-button action-button" data-usage-id=${xblock.scope_ids.usage_id}>
@@ -128,7 +137,7 @@ block_is_unit = is_unit(xblock)
% endif
% if use_tagging:
<li class="nav-item">
<a class="tags-button" href="#" role="button">${_("Manage tags")}</a>
<a class="manage-tags-button" href="#" role="button">${_("Manage tags")}</a>
</li>
% endif
% if is_course: