From 6102217a8891090730f6149d72f350383b880823 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 4 Jan 2011 15:59:53 -0800 Subject: [PATCH] Don't display the invitations link unless the user has invitations, thanks Pasta --- app/views/aspects/_no_contacts_message.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/aspects/_no_contacts_message.haml b/app/views/aspects/_no_contacts_message.haml index 405aef83c..026e6c23e 100644 --- a/app/views/aspects/_no_contacts_message.haml +++ b/app/views/aspects/_no_contacts_message.haml @@ -5,7 +5,8 @@ #no_contacts.floating.empty_message{:style => ("display:none" unless contact_count == 0)} - if aspect == :all %h3=t('.nobody') - %h4= link_to t('.invite'), new_user_invitation_path + - if current_user.invites > 0 + %h4= link_to t('.invite'), new_user_invitation_path - else %h3=t('.nobody_in_aspect', :aspect_name => aspect.name)