<%= turbo_frame_tag bubble, :edit do %> <%= link_to bubble.title, edit_bubble_path(bubble), class: "txt-undecorated" %> <% end %>

<%= 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--plain", style: "--btn-icon-size: 3em; margin-block-start: -0.5em; margin-inline-end: -0.2em", data: { action: "click->upload-preview#clear click->form#submit", upload_preview_target: "button" } do %> <%= 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 %>