* Basic implementation without dropdown * Dropdown functionality * Partial i18n * Nit fixes * Nit fixes * Flag count fix * I18n fr.yml * Nit design fix * added external div to article_item * added external div to article_item * Code merge of article_item and individual_article * Minor bug fix * Extacted more common code * Nit fix * Optimised code * Optimised code * Ni fix * Test fix * Minor suggested changes applied * Nit fix * Nit fix
14 lines
742 B
Text
14 lines
742 B
Text
<%= javascript_packs_with_chunks_tag "admin/shared/flagReactionItemDropdownButton", defer: true %>
|
|
<% if vomit_reactions.present? %>
|
|
<% vomit_reactions.each do |vomit_reaction| %>
|
|
<%= render "admin/shared/flag_reaction_item", vomit_reaction: vomit_reaction, text_section: text_section %>
|
|
<hr id="js__reaction__div__hr__<%= vomit_reaction.id %>" class="w-100 hr-no-margins">
|
|
<% end %>
|
|
<% else %>
|
|
<div class="flex flex-col justify-center items-center gap-4 h-100">
|
|
<div class="flex p-4 gap-2 radius-default" style="background: #EEF2FF;">
|
|
<%= crayons_icon_tag("flags", native: true, width: 56, height: 56) %>
|
|
</div>
|
|
<p class="crayons-subtitle-3 fw-normal color-secondary"><%= empty_text %></p>
|
|
</div>
|
|
<% end %>
|