Move no_posts_message rendering above the stream, so that it doesn't get pushed down by new posts.

This commit is contained in:
Andrej Kacian 2011-08-04 21:45:22 +02:00
parent 6a56e3298c
commit 2134fd2bc0

View file

@ -18,10 +18,10 @@
= render 'shared/publisher', :aspect => aspect, :aspect_ids => aspect_ids
#main_stream.stream{:data => {:guids => aspect_ids.join(',')}}
- if current_user.contacts.size < 2
= render 'aspects/no_posts_message'
- if current_user.contacts.size < 2
= render 'aspects/no_posts_message'
#main_stream.stream{:data => {:guids => aspect_ids.join(',')}}
- if posts.length > 0
= render 'shared/stream', :posts => posts
#pagination