Files
fizzy/app/views/boosts/_boosts.html.erb
T
2024-11-18 15:57:49 -06:00

15 lines
601 B
Plaintext

<%= tag.div class: "bubble__bubble bubble__meta bubble__boosts",
data: {
controller: "animation toggle-class",
animation_play_class: "boosting",
toggle_class_toggle_class: "boosting",
action: "animationend->toggle-class#toggle" },
hidden: !bubble.boost_count.positive? do %>
<%= button_to bucket_bubble_boosts_path(bubble.bucket, bubble),
class: "btn btn--plain",
data: { action: "toggle-class#toggle" },
form_class: "full-width" do %>
<%= tag.span("+ #{bubble.boost_count}") if bubble.boost_count.positive? %>
<% end %>
<% end %>