<% intro_video = root_node&.children&.intro&.first&.attachments&.find { |a| a.asset&.file&.video? } %>
|
|
|
|
<% if intro_video %>
|
|
<%= video_tag rails_storage_proxy_path(intro_video.asset.file),
|
|
preload: "auto",
|
|
muted: true,
|
|
playsinline: true,
|
|
class: "preload-media",
|
|
"aria-hidden": true,
|
|
tabindex: -1 %>
|
|
<% end %>
|