diff --git a/app/views/invitations/_invitations.rhtml b/app/views/invitations/_invitations.rhtml index 2f44314..e160be0 100644 --- a/app/views/invitations/_invitations.rhtml +++ b/app/views/invitations/_invitations.rhtml @@ -1,2 +1,2 @@ -You have <%= pluralize(@people.invitations.size, 'Invitations') rescue '0 Invitations' -%>. +<% 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 -%>