diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml
index e4b7c07ed..a05a5d14b 100644
--- a/app/views/aspects/index.html.haml
+++ b/app/views/aspects/index.html.haml
@@ -9,9 +9,8 @@
= render 'aspects/no_friends_message', :aspect => @aspect, :friend_count => @friends.count
= render 'shared/publisher', :aspect => @aspect
= render 'aspects/no_posts_message', :post_count => @posts.count, :friend_count => @friends.count
- %ul#stream
- - for post in @posts
- = render 'shared/stream_element', :post => post
+
+ = render 'shared/stream', :posts => @posts
#pagination
= will_paginate @posts
diff --git a/app/views/aspects/show.html.haml b/app/views/aspects/show.html.haml
index e4b7c07ed..a05a5d14b 100644
--- a/app/views/aspects/show.html.haml
+++ b/app/views/aspects/show.html.haml
@@ -9,9 +9,8 @@
= render 'aspects/no_friends_message', :aspect => @aspect, :friend_count => @friends.count
= render 'shared/publisher', :aspect => @aspect
= render 'aspects/no_posts_message', :post_count => @posts.count, :friend_count => @friends.count
- %ul#stream
- - for post in @posts
- = render 'shared/stream_element', :post => post
+
+ = render 'shared/stream', :posts => @posts
#pagination
= will_paginate @posts
diff --git a/app/views/people/show.html.haml b/app/views/people/show.html.haml
index 3cf1cead0..e95948aba 100644
--- a/app/views/people/show.html.haml
+++ b/app/views/people/show.html.haml
@@ -11,10 +11,9 @@
- if @contact || current_user.person == @person
- if @posts.count > 0
- %ul#stream
- - for post in @posts
- = render 'shared/stream_element', :post => post
- = will_paginate @posts
+ = render 'shared/stream', :posts => @posts
+ = will_paginate @posts
+
- else
%h3= t('.no_posts')
diff --git a/app/views/shared/_stream.haml b/app/views/shared/_stream.haml
new file mode 100644
index 000000000..5e31b2bd6
--- /dev/null
+++ b/app/views/shared/_stream.haml
@@ -0,0 +1,7 @@
+-# Copyright (c) 2010, Diaspora Inc. This file is
+-# licensed under the Affero General Public License version 3 or later. See
+-# the COPYRIGHT file.
+
+%ul#stream
+ - for post in posts
+ = render 'shared/stream_element', :post => post