<%= content_for :meta do %> <% end %>
<% if @video.report_published? %> <%= link_to fa_icon("file-text", text: "Unpublish"), [@video, :report_publications], method: :delete, class: "btn btn-danger btn-sm" %> <% else %> <%= link_to fa_icon("file-text", text: "Publish"), [@video, :report_publications], method: :post, class: "btn btn-primary btn-sm" %> <% end %> <%= button_to_release_report @video, content: fa_icon("print", text: t(".actions.create_release_report")) %>
<% if @video_analysis_presenter.stale? %>
<%= fa_icon "warning" %> Contracts have been added or imported since this video file has been uploaded. You must <%= link_to "re-analyze this video", [@video, :video_analyses], method: :post %> otherwise the new contracts will not be included in the analysis.
<% end %>
<%= @video.name ? @video.name : @video.filename %> (<%= @video.project.name %>)
<%= button_tag fa_icon("download", text: "EDLs"), class: "btn btn-primary btn-sm dropdown-toggle border", data: { toggle: "dropdown", boundary: "window" }, aria: { haspopup: true, expanded: false } %>
<%= video_tag @video_analysis_presenter.video_url, data: { behavior: "video-player-with-analysis", video_id: @video.id } %>
<%= render "video_analyses/actions", video: @video %> <%= render "video_analyses/keyboard_shortcuts" %>
EDL Events
<%= text_field_tag "go_to", "", id: "go_to", class: "form-control form-control-sm", placeholder: "00:00:00:00" %>
<%= button_tag "Go", id: "go_button", class: "btn btn-primary btn-sm" %>
<% @video_analysis_presenter.all_tracks_edl_events.each do |edl_event| %> <% end %>
Channel Source Clip TC In TC Out
<%= edl_event.channel %> <%= edl_event.source_file_name %> <%= edl_event.clip_name %> <%= edl_event.timecode_in %> <%= edl_event.timecode_out %>
AI Matches
<% @video_analysis_presenter.chronological_appearances.each do |match| %> <% if match.respond_to?(:file_info) && match.file_info.present? %> <% elsif match.photo.attached? %> <% end %> <% end %>
EDL # EDL TC VID TC Name Photo
<%= fa_icon("check-circle", style: "font-size:24px;color:green", "data-ujs-target" => "match-confirmed-check") %> <%= match.timecode_in %> <%= match.appears_at_timecode %> <%= button_to_video_release_confirmation @video, match, additional_video_release_params: { file_info_id: match.file_info.id }, classes: "btn btn-success btn-sm" do %> <%= fa_icon "plus" %> <% end %>
<%= fa_icon("check-circle", style: "font-size:24px;color:green", "data-ujs-target" => "match-confirmed-check") %> N/A <%= match.appears_at_timecode %> <%= match.name %> <%= image_tag thumbnail_variant(match.photo), class: "img-fluid figure-img" %> <%= button_to_video_release_confirmation @video, match, classes: "btn btn-success btn-sm" do %> <%= fa_icon "plus" %> <% end %>
<% # Init the video player and the recommendations %> <%= javascript_tag nonce: true do %> $(document).ready(function() { var bookmarks = <%= raw @video_analysis_presenter.bookmarks.to_json %>; var player = $("[data-behavior=video-player-with-analysis]"); App.VideoAnalysis.initPlayerWithAnalysis(player, bookmarks); }); <% end %> <% if @video.analysis_pending? %>
<%= fa_icon "cog spin" %> Video is still being analyzed
<% elsif @video.analysis_not_started? %>
<%= link_to "Analyze Video", "#", class: "btn btn-primary btn-sm", method: :post %>
<% end %>
Added to Report
<%= render "video_analyses/video_release_confirmations", video_release_confirmations: @video_release_confirmations %>
AI Matches
<% @video_analysis_presenter.chronological_graphics_matches.each do |match| %> <% end %>
EDL # EDL TC VID TC Filename
<%= fa_icon("check-circle", style: "font-size:24px;color:green", "data-ujs-target" => "graphics-confirmed-check") %> <%= match.timecode_in %> <%= match.appears_at_timecode %> <%= match.filename %> <%= button_to new_video_video_analyses_graphics_element_path(@video), class: "btn btn-success btn-sm", form: { data: { ujs_target: "graphics-element-form" } }, params: { graphics_element: { text: "", time_elapsed: match.start_time, edl_type: "graphics" }, matched_file_name: match.filename }, method: :get, form_class: "text-center", remote: true do %> <%= fa_icon "plus" %> <% end %>
<% if @video.analysis_pending? %>
<%= fa_icon "cog spin" %> Video is still being analyzed
<% end %>
Added to Report
<%= render "video_analyses/graphics_elements", graphics_elements: @graphics_elements_data.graphics_elements %>
AI Matches
<% @video_analysis_presenter.chronological_audio_matches.each do |match| %> <% end %>
EDL # EDL TC VID TC Filename
<%= fa_icon("check-circle", style: "font-size:24px;color:green", "data-ujs-target" => "match-confirmed-check") %> <%= match.timecode_in %> <%= match.appears_at_timecode %> <%= match.presented_filename %> <%= button_to new_video_video_analyses_audio_confirmation_path(@video), class: "btn btn-success btn-sm", form: { data: { ujs_target: "audio-confirmation-form" } }, params: { audio_confirmation: { confirmation_type: match.confirmation_type, time_elapsed: match.start_time, composer_info: match.composer_info, publisher_info: match.publisher_info, catalog: match.catalog, title: match.title, edl_type: match.edl_type }, matched_file_name: match.filename }, method: :get, remote: true, data: { disable_with: t("shared.disable_with") } do %> <%= fa_icon "plus" %> <% end %>
<% if @video.analysis_pending? %>
<%= fa_icon "cog spin" %> Video is still being analyzed
<% end %>
Added to Report
<%= render "video_analyses/audio_confirmations", audio_confirmations: @audio_confirmations %>
Added to Report
<%= render "video_analyses/unreleased_appearances", unreleased_appearances: @unreleased_appearances_data.unreleased_appearances %>
Notes
<% if @bookmarks.any? %> <%= render partial: "bookmarks/bookmark", collection: @bookmarks %> <% else %> <%= render partial: "bookmarks/empty_bookmarks" %> <% end %>
<%= Bookmark.human_attribute_name(:category) %> Text Video TC
<% project_feature @video.project, :talent_release do %>
Talent Releases
<%= bootstrap_form_tag url: video_video_analyses_talent_releases_path(@video), layout: :inline, method: :get, remote: true do |form| %> <%= form.search_field :query, class: "mt-1 mt-sm-0", hide_label: true, wrapper: false, placeholder: "Search...", value: params[:query] %> <%= form.button fa_icon("search", text: "Search"), class: "btn btn-primary mt-1 mt-sm-0 ml-sm-1", data: { disable_with: fa_icon("spinner spin", text: "Searching") } %> <%= link_to fa_icon("eraser", text: "Clear"), video_video_analyses_talent_releases_path(@video), class: "btn btn-danger mt-1 mt-sm-0 ml-1", data: { disable_with: fa_icon("spinner spin", text: "Clearing") }, remote: true %> <% end %>
    <%= render "releasables", releasables: @talent_releases, video: @video %>
<% end %> <% project_feature @video.project, :appearance_release do %>
Appearance Releases
<%= bootstrap_form_tag url: video_video_analyses_appearance_releases_path(@video), layout: :inline, method: :get, remote: true do |form| %> <%= form.search_field :query, class: "mt-1 mt-sm-0", hide_label: true, wrapper: false, placeholder: "Search...", value: params[:query] %> <%= form.button fa_icon("search", text: "Search"), class: "btn btn-primary mt-1 mt-sm-0 ml-sm-1", data: { disable_with: fa_icon("spinner spin", text: "Searching") } %> <%= link_to fa_icon("eraser", text: "Clear"), video_video_analyses_appearance_releases_path(@video), class: "btn btn-danger mt-1 mt-sm-0 ml-1", data: { disable_with: fa_icon("spinner spin", text: "Clearing") }, remote: true %> <% end %>
    <%= render "releasables", releasables: @appearance_releases, video: @video %>
<% end %> <% project_feature @video.project, :location_release do %>
Location Releases
<%= bootstrap_form_tag url: video_video_analyses_location_releases_path(@video), layout: :inline, method: :get, remote: true do |form| %> <%= form.search_field :query, class: "mt-1 mt-sm-0", hide_label: true, wrapper: false, placeholder: "Search...", value: params[:query] %> <%= form.button fa_icon("search", text: "Search"), class: "btn btn-primary mt-1 mt-sm-0 ml-sm-1", data: { disable_with: fa_icon("spinner spin", text: "Searching") } %> <%= link_to fa_icon("eraser", text: "Clear"), video_video_analyses_location_releases_path(@video), class: "btn btn-danger mt-1 mt-sm-0 ml-1", data: { disable_with: fa_icon("spinner spin", text: "Clearing") }, remote: true %> <% end %>
    <%= render "releasables", releasables: @location_releases, video: @video %>
<% end %> <% project_feature @video.project, :acquired_media_release do %>
Acquired Media Releases (Footage & Stills)
<%= bootstrap_form_tag url: video_video_analyses_acquired_media_releases_path(@video), layout: :inline, method: :get, remote: true do |form| %> <%= form.search_field :query, class: "mt-1 mt-sm-0", hide_label: true, wrapper: false, placeholder: "Search...", value: params[:query] %> <%= form.button fa_icon("search", text: "Search"), class: "btn btn-primary mt-1 mt-sm-0 ml-sm-1", data: { disable_with: fa_icon("spinner spin", text: "Searching") } %> <%= link_to fa_icon("eraser", text: "Clear"), video_video_analyses_acquired_media_releases_path(@video), class: "btn btn-danger mt-1 mt-sm-0 ml-1", data: { disable_with: fa_icon("spinner spin", text: "Clearing") }, remote: true %> <% end %>
    <%= render "releasables", releasables: @acquired_media_releases, video: @video %>
<% end %> <% project_feature @video.project, :music_release do %>
Music Releases (Original Music Release)
<%= bootstrap_form_tag url: [@video, :video_analyses, :music_releases], layout: :inline, method: :get, remote: true do |form| %> <%= form.search_field :query, class: "mt-1 mt-sm-0", hide_label: true, wrapper: false, placeholder: "Search...", value: params[:query] %> <%= form.button fa_icon("search", text: "Search"), class: "btn btn-primary mt-1 mt-sm-0 ml-sm-1", data: { disable_with: fa_icon("spinner spin", text: "Searching") } %> <%= link_to fa_icon("eraser", text: "Clear"), [@video, :video_analyses, :music_releases], class: "btn btn-danger mt-1 mt-sm-0 ml-1", data: { disable_with: fa_icon("spinner spin", text: "Clearing") }, remote: true %> <% end %>
    <%= render "releasables", releasables: @music_releases, video: @video %>
<% end %> <% project_feature @video.project, :material_release do %>
Material Releases (Products / Logos)
<%= bootstrap_form_tag url: video_video_analyses_material_releases_path(@video), layout: :inline, method: :get, remote: true do |form| %> <%= form.search_field :query, class: "mt-1 mt-sm-0", hide_label: true, wrapper: false, placeholder: "Search...", value: params[:query] %> <%= form.button fa_icon("search", text: "Search"), class: "btn btn-primary mt-1 mt-sm-0 ml-sm-1", data: { disable_with: fa_icon("spinner spin", text: "Searching") } %> <%= link_to fa_icon("eraser", text: "Clear"), video_video_analyses_material_releases_path(@video), class: "btn btn-danger mt-1 mt-sm-0 ml-1", data: { disable_with: fa_icon("spinner spin", text: "Clearing") }, remote: true %> <% end %>
    <%= render "releasables", releasables: @material_releases, video: @video %>
<% end %>