-if @video_file.image_file
  -img_url = @video_file.image_file.file.large.url
  -@facebook_img = img_url
  -@title = @video_file.title.to_s
-if @video_file and @video_file.youtube_code?
  .video_content
    %h2= @video_file.title if @video_file.title?
    .video-container
      =raw ('<iframe width="560" height="315" src="https://www.youtube.com/embed/'+@video_file.youtube_code+'?rel=0" frameborder="0" allowfullscreen></iframe>')
    .links
      Partager :
      =link_to "https://www.facebook.com/sharer/sharer.php?u=#{public_video_file_url(:slug => @video_file.slug)}", :target => "_blank", :class => "link facebook" do
        =i(:"facebook")
      =#text=CSS%20Social%20Media%20Sidebar&
      =link_to "https://twitter.com/intent/tweet?url=#{public_video_file_url(:slug => @video_file.slug)}&via=onevoiceplanet", :target => "_blank", :class => "link twitter" do
        =i(:"twitter")