Don't display the invitations link unless the user has invitations, thanks Pasta

This commit is contained in:
Raphael 2011-01-04 15:59:53 -08:00
parent f134cfd43f
commit 6102217a88

View file

@ -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)