%ol#album_folders
  
  %li
    =link_to "/admin/image_files/?view_all_images=true", :remote => true, :class => "large_link" do
      =ic :cog
      Toutes les images
      ="("+ImageFile.count.to_s+")"
  
  
  %li
    =link_to "/admin/image_files/?view_images=true", :remote => true, :class => "large_link" do
      =ic :cog
      Images non classées
      ="("+ImageFile.where(:album_id => nil).count.to_s+")"
  
  
    
  =render AlbumFolder.where(:parent_id => nil).order(:name).all


:coffeescript
  $("#album_folders .large_link").click ->
    $("#album_folders .large_link").removeClass("active")
    $(this).addClass("active")
    $('#image_files_container').html("Chargement en cours...");
    
    
    
  $("#album_folders .folder_expend").click (event) -> 
    $(this).closest('li').find('ol:first').toggle()
    event.stopPropagation()
    return false