diff --git a/app/views/shared/_stream_element.html.haml b/app/views/shared/_stream_element.html.haml index 98395e602..286557e53 100644 --- a/app/views/shared/_stream_element.html.haml +++ b/app/views/shared/_stream_element.html.haml @@ -41,20 +41,21 @@ = t('public') · - else + - aspects = aspects_with_post(all_aspects, post) - if post.author.owner_id == current_user.id - %span.post_scope{:title => t('.shared_with', :aspect_names => aspects_with_post(all_aspects, post).map!{|a| a.name}.join(', '))} - - if aspects_with_post(all_aspects, post).size == 1 - = aspects_with_post(all_aspects, post).first + %span.post_scope{:title => t('.shared_with', :aspect_names => aspects.map!{|a| a.name}.join(', '))} + - if aspects.size == 1 + = aspects.first - else = t('limited') - (#{aspects_with_post(all_aspects, post).size}) + (#{aspects.size}) - else %span.post_scope - - if aspects_with_post(all_aspects, post).size == 1 - = aspects_with_post(all_aspects, post).first + - if aspects.size == 1 + = aspects.first - else = t('limited') - (#{aspects_with_post(all_aspects, post).size}) + (#{aspects.size}) · %span.via