%tr#kapsme{:id => kapsme.id}
  %td{:style => "vertical-align:middle;"}= kapsme.name
  %td{:style => "vertical-align:middle;"}
    -if kapsme.done
      %strong= kapsme.points
    -else
      %span{:style => "color:rgba(0,0,0,0.2);"}= kapsme.points
  
  %td
    ="oui" if kapsme.paused
  %td{:style => "vertical-align:middle;"}
    ="oui" if kapsme.public
    
    
    

    
  %td{:style => "font-size:25px;"}
    -if kapsme.done
      =link_to ic(:check), public_kapsme_path(:id => kapsme.id, :kapsme => {:done => false}, :format => :js), :method => :put, :remote => true, :style => "color:green;"
    
    -else
      =link_to ic(:check), public_kapsme_path(:id => kapsme.id, :kapsme => {:done => true}, :format => :js), :method => :put, :remote => true, :style => "color:rgba(0,0,0,0.2);"
  
  
  

  