(Temporarily) Remove multiple reactions from #index (#19142)
This commit is contained in:
parent
9b66a8e406
commit
a45d300639
1 changed files with 7 additions and 26 deletions
|
|
@ -120,32 +120,13 @@
|
|||
<div class="crayons-story__bottom">
|
||||
<div class="crayons-story__details">
|
||||
<% if story.public_reactions_count > 0 %>
|
||||
<% if FeatureFlag.enabled?(:multiple_reactions) %>
|
||||
<a href="<%= story.path %>" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left" data-reaction-count data-reactable-id="<%= story.id %>" aria-label="<%= t("views.articles.comments.aria_label", title: story.title) %>">
|
||||
<div class="multiple_reactions_aggregate">
|
||||
<span dir="rtl">
|
||||
<% ReactionCategory.for_view.reverse_each do |reaction_type| %>
|
||||
<% next unless story.reaction_categories.include?(reaction_type.slug.to_s) %>
|
||||
<span class="crayons_icon_container">
|
||||
<%= image_tag reaction_type.icon, size: "18x18" %>
|
||||
</span>
|
||||
<% end %>
|
||||
</span>
|
||||
<span class="aggregate_reactions_counter"><%= t("views.reactions.summary.count_html",
|
||||
count: story.public_reactions_count,
|
||||
start: tag("span", { class: %w[hidden s:inline] }, true),
|
||||
end: "</span>".html_safe) %></span>
|
||||
</div>
|
||||
</a>
|
||||
<% else %>
|
||||
<a href="<%= story.path %>" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left" data-reaction-count data-reactable-id="<%= story.id %>" aria-label="<%= t("views.articles.comments.aria_label", title: story.title) %>">
|
||||
<%= crayons_icon_tag("small-heart", title: t("views.reactions.summary.title")) %>
|
||||
<%= t("views.reactions.summary.count_html",
|
||||
count: story.public_reactions_count,
|
||||
start: tag("span", { class: %w[hidden s:inline] }, true),
|
||||
end: "</span>".html_safe) %>
|
||||
</a>
|
||||
<% end %>
|
||||
<a href="<%= story.path %>" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left" data-reaction-count data-reactable-id="<%= story.id %>" aria-label="<%= t("views.articles.comments.aria_label", title: story.title) %>">
|
||||
<%= crayons_icon_tag("small-heart", title: t("views.reactions.summary.title")) %>
|
||||
<%= t("views.reactions.summary.count_html",
|
||||
count: story.public_reactions_count,
|
||||
start: tag("span", { class: %w[hidden s:inline] }, true),
|
||||
end: "</span>".html_safe) %>
|
||||
</a>
|
||||
<% end %>
|
||||
<% if story.comments_count > 0 %>
|
||||
<a href="<%= story.path %>#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center" aria-label="<%= t("views.articles.comments.aria_label", title: story.title) %>">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue