From 319cc51fc0f856ac045055c34f54aee766b69346 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 4 Feb 2008 06:28:12 +0000 Subject: [PATCH] fixing name of link git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@135 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/views/invitations/_invitations.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -%>