<% if video_release_confirmations.any? %>
<% video_release_confirmations.group_by(&:releasable_type).each do |group, confirmations| %> <% confirmations.sort_by(&:appears_at).each do |confirmation| %> <% end %> <% end %>
EDL # EDL TC VID TC Name Photo
<%= confirmation.timecode_in %> <%= confirmation.appears_at %> <%= confirmation.releasable.name %> <% if confirmation.file_id.present? %> <%= confirmation.file.filename %> <% elsif confirmation.releasable.respond_to?(:photo) && confirmation.releasable.photo.attached? %> <%= image_tag thumbnail_variant(confirmation.releasable.photo), class: "img-fluid figure-img" %> <% else %> No Photo <% end %> <%= link_to polymorphic_path([confirmation.video, confirmation.releasable, confirmation]), class: "btn btn-danger btn-sm", data: { toggle: "tooltip", template: tooltip_template(css_class: "tooltip-danger") }, method: :delete, remote: true do %> <%= fa_icon("trash fw") %> <% end %>
<% else %>
Releases that have been added to the report will appear here
<% end %>