<h3><%= l(:label_crm_my_contact_plural) %></h3>
<% contacts = Contact.visible.where(:assigned_to_id  => User.current.id).limit(20) %>

<div class="box" id="duplicates">
	<ul>
	    <% contacts.each do |contact| %>
		<li>
			<%= contact_tag(contact) %>
			<%= "(#{contact.job_title}) " unless contact.job_title.blank? %>
    </li>
		<% end %>
	</ul>
</div>

<% if contacts.length > 0 %>
	<p class="small"><%= 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"]} %></p>
<% end %>

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