Show aspect title if message is posted only to one aspect
This commit is contained in:
parent
cc3702d733
commit
ccecf32f9b
1 changed files with 10 additions and 4 deletions
|
|
@ -43,10 +43,16 @@
|
||||||
- else
|
- else
|
||||||
- if post.author.owner_id == current_user.id
|
- 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(', '))}
|
%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
|
||||||
|
- else
|
||||||
= t('limited')
|
= t('limited')
|
||||||
(#{aspects_with_post(all_aspects, post).size})
|
(#{aspects_with_post(all_aspects, post).size})
|
||||||
- else
|
- else
|
||||||
%span.post_scope
|
%span.post_scope
|
||||||
|
- if aspects_with_post(all_aspects, post).size == 1
|
||||||
|
= aspects_with_post(all_aspects, post).first
|
||||||
|
- else
|
||||||
= t('limited')
|
= t('limited')
|
||||||
(#{aspects_with_post(all_aspects, post).size})
|
(#{aspects_with_post(all_aspects, post).size})
|
||||||
·
|
·
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue