<% if block.is_youtube? %>
<%= render :partial => 'box_organizer/iframe_video_block', :locals => { :url => block.format_embed_video_url_for_youtube, :width => block.width, :height => block.height }%>
<% elsif block.is_vimeo? %>
<%= render :partial => 'box_organizer/iframe_video_block', :locals => { :url => block.format_embed_video_url_for_vimeo, :width => block.width, :height => block.height }%>
<% elsif block.is_video_file? %>
<%= render :partial => 'box_organizer/html5_video_block', :locals => { :url => block.url, :width => block.width, :height => block.height }%>
<% else %>
<%= _("Register a valid url (Vimeo, Youtube, video files)") %>
<% end %>