Show aspect title if message is posted only to one aspect

This commit is contained in:
Manuel Schölling 2011-07-29 20:03:06 +02:00 committed by Raphael Sofaer
parent cc3702d733
commit ccecf32f9b

View file

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