<%= link_to_if_authorized l(:label_contact_new), {:controller => 'contacts', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>

<%= link_to "#{contacts_filter_name(params[:query])}(#{@contacts_count})", {}, :onclick => "Element.toggle('select_scope'); Element.toggle('scope_header'); return false;" %> <% if !@tag %> <%= label_tag :search, l(:label_search), :id => "search_overlabel" %> <%= text_field_tag(:search, params[:search], :autocomplete => "off", :size => "35", :class => "live_search_field", :onfocus => "Element.hide('search_overlabel'); return false;", :onblur => "if (this.value == '') {Element.show('search_overlabel');}" ) %> <%= observe_field("search", :frequency => 2, :update => 'contact_list', :url => {:controller => 'contacts', :action => 'index', :project_id => @project }, :with => "search") %> <% end %> <%= render(:partial => "tags_item", :collection => @tag, :locals => {:is_note => true} ) %>

<% unless true %>
<%= l(:label_filter_plural) %>
<%= select_tag :deal_status_id, options_from_collection_for_select(@project.assignable_users, :id, :name), :onchange => "this.form.submit();" %>
<% end %>
<%= render :partial => 'list' %>
<% other_formats_links do |f| %> <%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %> <%= f.link_to 'CSV', :url => params %> <%- if Gem.available?('vpim') -%> <%= f.link_to 'VCF', :url => params %> <%- end -%> <% end %> <% html_title l(:label_contact_plural) %> <% content_for :sidebar do %> <%= render :partial => 'common/sidebar' %> <%= render :partial => 'tags_cloud' %> <%= render :partial => 'notes/last_notes', :object => @last_notes %> <%= render :partial => 'common/recently_viewed' %> <%= call_hook(:view_contacts_sidebar_contacts_list_bottom) %> <% end %> <% content_for(:header_tags) do %> <%= javascript_include_tag :contacts, :plugin => 'redmine_contacts' %> <%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %> <%= stylesheet_link_tag :contacts_sidebar, :plugin => 'redmine_contacts' %> <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => l(:label_contact_plural)) %> <% end %>