Skip to content
Snippets Groups Projects
Unverified Commit cd587d7f authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

iframe in preview

parent b9a41c5a
No related branches found
No related tags found
No related merge requests found
<%
$class = "block block-video"
$class = "block block-video"
unless @block.title.empty?
$class += " block-with-title"
end
......@@ -12,14 +12,9 @@ end
<h2><%= @block.title %></h2>
</div>
<% end %>
<% if @block.template.url %>
<% if @block.template.url.present? %>
<div class="video">
<%# TODO: identification du provider de la vidéo %>
<iframe
src="<%= block_component_preview :url %>"
title="<%= block_component_preview :video_title %>"
loading="lazy"
></iframe>
<%= @block.template.video_iframe %>
</div>
<% end %>
<% if @block.template.video_title %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment