<%= l(:label_crm_my_contact_plural) %>

<% contacts = Contact.visible.where(:assigned_to_id => User.current.id).limit(10) %> <% if contacts.length > 0 %> <% if contacts.select{|c| !c.is_company}.any? %>
<% contacts.select{|c| !c.is_company}.each do |contact| %>
<%= link_to avatar_to(contact, :size => "64"), contact_path(contact), :id => "avatar" %> <%= render_contact_tooltip(contact, :icon => true) %>
<% end %>
<% end %> <% if contacts.select{|c| c.is_company}.any? %>
<% contacts.select{|c| c.is_company}.each do |contact| %>
<%= link_to avatar_to(contact, :size => "64"), contact_path(contact), :id => "avatar" %> <%= render_contact_tooltip(contact, :icon => true) %>
<% end %>
<% end %>

<%= link_to l(:label_crm_contact_view_all), :controller => 'contacts', :action => 'index', :set_filter => 1, :fields => ["assigned_to_id", ""], :operators => {"assigned_to_id"=>"="}, :values => {"assigned_to_id" => ["me"]} %>

<% end %> <% content_for(:header_tags) do %> <%= javascript_include_tag :contacts, :plugin => 'redmine_contacts' %> <%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %> <% end %>