% if @people.id == session[:people_id] -%>You have<% else -%><%= @people.title -%> has<% end -%> <%= pluralize(@people.invitations.size, 'Invitations') rescue '0 Invitations' -%>.
<% if @people and !@people.invitations.empty? -%>
<%= link_to_function "#{image_tag('mail-forward.png')} Send Invitation", "lightboxes['invitation_dialog'].open()" -%><% end -%>