<%= bubble.title %>

<%= link_to bubble, class: "bubble__link" do %> <%= bubble.title %> <% end %>
<%= image_tag bubble.image.attached? ? bubble.image : "", data: { upload_preview_target: "image" } %>
<%= form_with model: bubble, data: { controller: "form" } do | form | %>
<% if bubble.image.attached? %> <%= tag.label class:"btn btn--negative", data: { action: "click->upload-preview#clear click->form#submit", upload_preview_target: "button" } do %> <%= image_tag "minus.svg", aria: { hidden: "true" }, size: 24 %> <%= form.hidden_field :bubble, value: bubble.id %> <%= check_box_tag "remove_image", "true" %> Remove imagee <% end %> <% else %> <% end %>
<% end %> <% bubble.tags.each do |tag| %> <%= link_to "##{tag.title}", bubbles_path(tag_id: tag), class: "bubble__bubble bubble__meta bubble__tag" %> <% end %> <% if bubble.tags.size < 3 %> <%= turbo_frame_tag :new_tag do %> <%= link_to "#", new_bubble_tag_path(bubble), class: "bubble__tag--new" %> <% end %> <% end %> <%= 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" } do %> <%= turbo_frame_tag dom_id(bubble, :boosts), src: bubble_boosts_path(bubble) %> <% end %>