diff --git a/app/views/aspects/_no_contacts_message.haml b/app/views/aspects/_no_contacts_message.haml index 1581c739da718f5b04490262b07a9eb90c278285..405aef83c93b0f31d989a522b190127217a6f135 100644 --- a/app/views/aspects/_no_contacts_message.haml +++ b/app/views/aspects/_no_contacts_message.haml @@ -5,11 +5,7 @@ #no_contacts.floating.empty_message{:style => ("display:none" unless contact_count == 0)} - if aspect == :all %h3=t('.nobody') - %h4= link_to t('.add_contact'), aspects_manage_path - %h4= link_to t('.invite'), "#invite_user_pane", :class => "invite_user_button", :class => "invite_user_button", :title => t('.invite') + %h4= link_to t('.invite'), new_user_invitation_path - else %h3=t('.nobody_in_aspect', :aspect_name => aspect.name) - - if defined?(options) && options - %h4= link_to t('.add_contact_to', :aspect_name => aspect.name), "#manage_aspect_contacts_pane", :class => "manage_aspect_contacts_button" - %h4= link_to t('.invite', :aspect_name => aspect.name), "#invite_user_pane", :class => "invite_user_button", :class => "invite_user_button", :title => t('.invite') diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 517bcc7cbeaf0445620c4ef371c6a969b560f24c..2bb7512a295f0089e76b61cb198834bd2322520f 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -11,8 +11,8 @@ = info_text(t('.handle_explanation')) .span-15.append-1 - = render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count = render 'shared/publisher', :aspect => @aspect + = render 'aspects/no_contacts_message', :aspect => @aspect, :contact_count => @contacts.count = render 'aspects/no_posts_message', :post_count => @post_hashes.length, :contact_count => @contacts.count = render 'shared/stream', :posts => @post_hashes