<% if !@contact.nil? %>
- <%= context_menu_link l(:button_edit), {:controller => 'contacts', :action => 'edit', :id => @contact, :project => @project}, :class => 'icon-edit', :disabled => !@can[:edit] %>
<% if User.current.logged? %>
- <%= watcher_link(@contact, User.current) %>
<% end %>
<% if !@project.nil? %>
- <%= context_menu_link l(:label_deal_new), {:controller => 'deals', :action => 'new', :project_id => @project, :contact_id => @contact},
:class => 'icon-add-deal', :disabled => !@can[:create_deal] %>
<% if @contact.is_company? %>
- <%= context_menu_link l(:label_add_employee), {:controller => 'contacts', :action => 'new', :project_id => @project, :contact => {:company => @contact.name}},
:class => 'icon-add-employee', :disabled => !@can[:edit] %>
<% end %>
<% end %>
<% else %>
- <%= context_menu_link l(:button_edit), {:controller => 'contacts', :action => 'bulk_edit', :ids => @contacts.collect(&:id)},
:class => 'icon-edit', :disabled => !@can[:edit] %>
<% end %>
- <%= context_menu_link l(:label_send_mail), {:controller => 'contacts', :action => 'edit_mails', :ids => @contacts.collect(&:id), :project_id => @project}, :class => 'icon-email', :disabled => !@can[:send_mails] %>
- <%= context_menu_link l(:button_delete), {:controller => 'contacts', :action => 'bulk_destroy', :ids => @contacts.collect(&:id), :project_id => @project},
:method => :post, :confirm => l(:text_are_you_sure), :class => 'icon-del', :disabled => !@can[:delete] %>