From 2a9ce62c8aae0c578dd560de3041725d3573f649 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 4 Feb 2008 06:28:57 +0000 Subject: [PATCH] only show link for your own page git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@136 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 e160be0..d46fe23 100644 --- a/app/views/invitations/_invitations.rhtml +++ b/app/views/invitations/_invitations.rhtml @@ -1,2 +1,2 @@ <% 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 -%> +<% if @people and !@people.invitations.empty? and @people.id == session[:people_id] -%>
<%= link_to_function "#{image_tag('mail-forward.png')} Send Invitation", "lightboxes['invitation_dialog'].open()" -%><% end -%>