<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%>
<% has_video = @campaign.vimeo_video_id || @campaign.youtube_video_id %> <% text = has_video ? "Edit Video" : "Add Video" %> <% if @campaign.vimeo_video_id %>
<% elsif @campaign.youtube_video_id %>
<%= render 'components/media/youtube_iframe', id: @campaign.youtube_video_id %>
<% elsif @campaign.main_image.attached? %> <%= image_tag @campaign.main_image_by_size(:normal), class: 'campaignMedia-image' %> <% end %>