.contact_action#contact_action{:id => contact_action.id, :style => ("border-color:#{contact_action.admin.color};" if contact_action.admin)}
  %p.name
    
    -if contact_action.admin
      %span{:style => "background:#{contact_action.admin.color};padding:5px 10px;color:white"}
        =contact_action.admin.username
  %p
    =l contact_action.action_at
  
  %p
    %strong
      -if contact_action.contact_action_pattern
        =contact_action.contact_action_pattern.title
      
  %p
    = contact_action.action_message
  
  .actions
    
    
    = link_to i(:"trash-o"), [:admin, contact_action], :confirm => 'Voulez-vous vraiment supprimer cette action ?', :method => :delete, :remote => true

    = link_to i(:pencil), edit_admin_contact_action_path(contact_action), :remote => true




