<% if !@person.images.blank? and (@person.images.length > 1) and !@person.images.first.top_pick %>

<%= t 'kinney.people.images_of', :name => @person.full_name %>

<% @person.images.each_with_index do |image,index| %> <% next if image == @top_image %> <%= content_for :image_modals do %> <%= render :partial => '/kinney/images/image_modal', :locals => {:index => index, :person => @person, :image => image} %> <% end -%>
<%= link_to image.external_url, :'data-target'=> "#modal_image_#{index}", :class=>"thumbnail image_modal_trigger" do %> <%= kinney_image_small(image) %> <% end -%>
<% end -%>
<% end -%> <%= yield :image_modals %>