Extract component to render an embedded video
This commit is contained in:
@@ -65,13 +65,7 @@
|
||||
|
||||
<blockquote><%= @proposal.summary %></blockquote>
|
||||
|
||||
<% if @proposal.video_url.present? %>
|
||||
<div class="small-12 medium-7 small-centered">
|
||||
<div class="flex-video">
|
||||
<div id="js-embedded-video" data-video-code="<%= embedded_video_code(@proposal) %>"></div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render Shared::EmbeddedVideoComponent.new(@proposal) %>
|
||||
|
||||
<%= auto_link_already_sanitized_html wysiwyg(@proposal.description) %>
|
||||
|
||||
|
||||
@@ -30,13 +30,7 @@
|
||||
|
||||
<blockquote><%= @proposal.summary %></blockquote>
|
||||
|
||||
<% if @proposal.video_url.present? %>
|
||||
<div class="small-12 medium-7 small-centered">
|
||||
<div class="flex-video">
|
||||
<div id="js-embedded-video" data-video-code="<%= embedded_video_code(@proposal) %>"></div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= render Shared::EmbeddedVideoComponent.new(@proposal) %>
|
||||
|
||||
<%= auto_link_already_sanitized_html wysiwyg(@proposal.description) %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user