.qi_row.i_task_row#i_task{:id => i_task.id}
  .qi_pannel.qi_plain.padding{:style => ("background:linear-gradient(to bottom, white 50%,rgba(242, 38, 19, 0.2) 80%,rgba(242, 38, 19, 0.7) 100%);" if (!i_task.done and i_task.end_at and i_task.end_at < Date.today) and !params[:no_detail])}
    %table.table

      %tr
        %td{:style => (params[:no_detail] ? "width:30px;" : "width:150px;")}
          -if i_task.done
            =link_to admin_i_task_path(:id => i_task.id, :i_task => {:done => false}), :remote => true, :method => :put do
              .big_icon.done
                =ic :check
          -else
            =link_to admin_i_task_path(:id => i_task.id, :i_task => {:done => true}), :remote => true, :method => :put do
              .big_icon.undone
                =ic :check
          
          -if !params[:no_detail]
            -if i_task.urgent
              =link_to admin_i_task_path(:id => i_task.id, :i_task => {:urgent => false}), :remote => true, :method => :put do
                .big_icon.fire{:style => ("color:green" if i_task.done) }
                  =ic :"free-code-camp"
            -else
              =link_to admin_i_task_path(:id => i_task.id, :i_task => {:urgent => true}), :remote => true, :method => :put do
                .big_icon.unfire
                  =ic :"free-code-camp"
                
          
            -[[1, :star],[2, :"arrow-right"],[3, :history]].each do |number|
          
          
              -if i_task.i_previ_id == number[0]
                =link_to admin_i_task_path(:id => i_task.id, :i_task => {:i_previ_id => nil}), :remote => true, :method => :put do
                  .big_icon.active
                    =ic number[1]
              -else
                =link_to admin_i_task_path(:id => i_task.id, :i_task => {:i_previ_id => number[0]}), :remote => true, :method => :put do
                  .big_icon
                    =ic number[1]
    



        %td{:style => "width:150px;"}= i_task.admin.show_name if i_task.admin
        %td= i_task.name
        -if !@i_taks_project
          %td.project{:style => "width:150px;"}
            = i_task.i_task_project.name if i_task.i_task_project
            -if false
              %br
              = i_task.p_customer.show_name if i_task.p_customer
        -if !params[:no_detail]
          %td.time{:style => "width:100px;"}
            -if i_task.minutes
              = i_task.minutes
              min

        
 
  

          %td.actions{:style => "width:120px;"}
            -if current_admin.admins_crud_taskable.ids.include?(i_task.admin_id)
              = link_to i(:"trash-o"), [:admin, i_task], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette tache ? ' } , :remote => true
              = link_to i(:pencil), edit_admin_i_task_path(i_task), :remote => true
            
            
            
            
            =# link_to i(:eye), admin_i_task_path(i_task)
    

