=raw "" #intro_videos =link_to public_video_files_path do =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 ! .investigation_cats .main_container %h3 Catégories -InvestigationCat.where(:parent_id => nil).order("position ASC, name DESC").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 and total > 3 -if total > 0 =link_to investigation_cat.name, public_investigation_cat_path(investigation_cat), :class => ("active" if @investigation_cat and investigation_cat == @investigation_cat) =raw "
"