only show link for your own page

git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@136 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7
master
andrew 2008-02-04 06:28:57 +00:00
parent 319cc51fc0
commit 2a9ce62c8a
1 changed files with 1 additions and 1 deletions

View File

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