Files
fizzy/app/views/boosts/_boosts.html.erb
T
2024-12-13 17:02:11 -06:00

15 lines
703 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.boosts_count.positive? do %>
<%= form_with url: bucket_bubble_boosts_path(bubble.bucket, bubble),
class: "boost__form",
data: { action: "toggle-class#toggle" } do %>
<%= text_field_tag :boost_count, bubble.boosts_count, min: 1, class: "input borderless boost__input", autocomplete: "off" %>
<%= tag.button "+", class: "btn btn--plain boost__btn", type: :submit %>
<% end %>
<% end %>