%= turbo_frame_tag dom_id(entry, :images) do %>
<% if entry.images.attached? %>
<% entry.images.each do |image| %>
<%= link_to rails_blob_path(image, disposition: "inline"), target: "_blank", rel: "noopener" do %>
<%= image_tag rails_blob_path(image, disposition: "inline"), alt: image.filename.to_s, class: "entry-image__thumbnail" %>
<% end %>
<%= image.filename %>
<%= button_to "Delete", delete_path_for.call(image), method: :delete, class: "button button--danger button--small" %>
<% end %>
<% else %>
No images attached.
<% end %>
<%= link_to "Add images", add_path, class: "button button--secondary button--small" %>
<% end %>