

.qi_header
  .right= link_to 'Ajouter un communiqué', new_admin_press_release_path(), :class => "btn btn-primary"
  %h1 

    Communiqué de presse

  

.qi_row
  .qi_pannel.qi_plain.padding


    
    %table.stat_table.table
      %tr
        %th
        %th Date
        %th Nom

        %th
    


      - @press_releases.each do |press_release| 
        -press_release.generate_bloc
        %tr{:class => ("warning" if !press_release.enabled)}
          %td{:style => "width:120px;"}
            =image_tag press_release.image_file.file.large.medium.small.url if press_release.image_file
          %td
            =l press_release.published_at if press_release.published_at?
          %td
            = press_release.title
      
  
     
     
          %td.actions
            = link_to i(:"trash-o"), [:admin, press_release], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette press_release ? Les signatures seront également supprimées.' } 
            = link_to i(:pencil), edit_admin_press_release_path(press_release)
            = link_to i(:info), [:admin, press_release]
    
    .qi_pagination
      = paginate @press_releases #, :remote => true