Don't display the invitations link unless the user has invitations, thanks Pasta
This commit is contained in:
parent
f134cfd43f
commit
6102217a88
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,8 @@
|
||||||
#no_contacts.floating.empty_message{:style => ("display:none" unless contact_count == 0)}
|
#no_contacts.floating.empty_message{:style => ("display:none" unless contact_count == 0)}
|
||||||
- if aspect == :all
|
- if aspect == :all
|
||||||
%h3=t('.nobody')
|
%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
|
- else
|
||||||
%h3=t('.nobody_in_aspect', :aspect_name => aspect.name)
|
%h3=t('.nobody_in_aspect', :aspect_name => aspect.name)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue