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

  -if !@p_friend
    %td{:style => "vertical-align:middle;"}
      ="oui" if kapsme.public
    
    
    

    
  %td{:style => "font-size:25px;"}
    -if !kapsme.paused
      -if kapsme.done
        -if !@p_friend
          =link_to ic(:check), public_kapsme_path(:id => kapsme.id, :kapsme => {:done => false}, :format => :js), :method => :put, :remote => true, :style => "color:green;"
        -else
          %span{:style => "color:green;"}=ic(:check)
        
      -else
        -if !@p_friend
          =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);"
        -else
          %span{:style => "color:rgba(0,0,0,0.2);"}=ic(:check)
  
  
  

  