diff --git a/app/views/shared/_stream_element.html.haml b/app/views/shared/_stream_element.html.haml index 4caa6130c..98395e602 100644 --- a/app/views/shared/_stream_element.html.haml +++ b/app/views/shared/_stream_element.html.haml @@ -43,12 +43,18 @@ - else - 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(', '))} - = t('limited') - (#{aspects_with_post(all_aspects, post).size}) + - if aspects_with_post(all_aspects, post).size == 1 + = aspects_with_post(all_aspects, post).first + - else + = t('limited') + (#{aspects_with_post(all_aspects, post).size}) - else %span.post_scope - = t('limited') - (#{aspects_with_post(all_aspects, post).size}) + - if aspects_with_post(all_aspects, post).size == 1 + = aspects_with_post(all_aspects, post).first + - else + = t('limited') + (#{aspects_with_post(all_aspects, post).size}) ยท %span.via