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,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue