.show_video
  .row
    .columns.span_9
      -if @video_file.image_file
        -img_url = @video_file.image_file.file.large.url
        -@facebook_img = img_url
        -@title = @video_file.lang(@lang.slug).title.to_s
        -@video_file.lang(@lang.slug).description? ? @description = @video_file.lang(@lang.slug).description : @description = "Voir la vidéo sur OneVoice.fr"
  
  
      -if @video_file and @video_file.youtube_code? or @video_file.vimeo_code?
        .video_content
          
          .video-container
            -if @video_file.youtube_code?
              =raw ('<iframe width="560" height="315" src="https://www.youtube.com/embed/'+@video_file.youtube_code+'?rel=0" frameborder="0" allowfullscreen></iframe>')
            -else
              =raw'<iframe class="vimeo_iframe" src="https://player.vimeo.com/video/'+@video_file.vimeo_code+'?" width="1920" height="1080" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'
    
          
          %h2= @video_file.lang(@lang.slug).title if @video_file.lang(@lang.slug).title?
          
          -if @video_file.lang(@lang.slug).description.to_s
            .description
              =simple_format @video_file.lang(@lang.slug).description
              
          .links
            Partager :
            =link_to "https://www.facebook.com/sharer/sharer.php?u=#{public_video_file_url(:lang => params[:lang],:slug => @video_file.lang(@lang.slug).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(:lang => params[:lang],:slug => @video_file.lang(@lang.slug).slug)}&via=onevoiceplanet", :target => "_blank", :class => "link twitter" do
              =i(:"twitter")
              
          .clear
          
          
          .video_files{:style => "margin:0 -20px"}
            -@video_file.video_folder.video_files.where("id != ?", @video_file.id).recents.lang(@lang.slug).order("RAND()").limit(3).each do |video_file| 
              .column
                =render :partial => "public/video_files/video_file",:object => video_file, :locals => {:hard_link => true}
      
      
            .clear
    
  
    .columns.span_3
      .square.intro
        =qit "intro-video-new" do
          %h2 Jipe TV
          %p
            Sur Jipe TV, découvrez les images inédites de nos enquêtes et de nos campagnes en France et avec nos partenaires du monde entier !
          
      .square.category
        -@investigation_cats = InvestigationCat.where(:parent_id => nil).order("position ASC, name DESC").all
        %h3 Catégories
        %ul
          -@investigation_cats.each do |investigation_cat|
            -ids = investigation_cat.children.map{|e| e.id}
            -ids << investigation_cat.id
            -total = VideoFile.where(:investigation_cat_id => ids).recents.lang(@lang.slug).count
            -if total > 0
              %li
                =link_to public_investigation_cat_path(investigation_cat) do
                  =investigation_cat.name
                  ="(#{total})"
        
        
