%= tagged_image_browser(@people) %>
<%= render :partial => 'pages/page' %>
<% lightbox :title => 'Send An Invitation', :window_id => 'invitation_dialog' do -%>
Enter the recipient's email address: <%= text_field_tag 'email' -%>
<%= link_to_remote "Send", :url => { :controller => :invitations, :action => :send_invitation }, :with => "'email='+escape($('email').value)", :update => { :failure => 'invitation_errors', :success => 'person_invitations' }, :success => "Control.Modal.close()" -%>
<% end -%>
<% content_for :sidebar do -%>
<%= new_people_link -%>
<%= edit_people_link(@people) %>
<%= link_to 'Destroy', people_path(@people), :confirm => 'Are you sure?', :method => :delete %>
<% unless @people.tagged_images.empty? -%><%= tagged_image_browser_link -%>
<% end -%>
<%= show_friends_link(@people) -%>
<% unless @people.id == session[:people_id] or @people.friend_of?(session[:people_id]) -%><%= add_friend_link(@people) -%>
<% end -%>
<% if @people.friend_of?(session[:people_id]) -%><%= remove_friend_link(@people) -%>
<% end -%>
<%= link_to "#{pluralize(@people.beers.size, 'Beer')} Experience", experience_path(@people) -%>
<% if @people.beers.size == Beer.count -%><%= @people.title -%> is a god among men, having tried every beer.
<% end -%>
<%= render :partial => 'invitations/invitations' -%>
<% if has_permission_for_action?(:create, :invitations) -%><%= link_to_remote "#{image_tag('list-add.png')} Invitation", :update => 'person_invitations', :url => invitations_path, :with => "'people_id=#{@people.id}'", :success => "new Effect.Highlight('person_invitations', { duration: 2.0 })" -%>
<% end -%>
<% end -%>