Skip to content
Extraits de code Groupes Projets
Valider f594fa1d rédigé par danielvincent's avatar danielvincent
Parcourir les fichiers

Stream is its own partial, which takes a collection of posts

parent 32d953f4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
......@@ -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
......
......@@ -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')
......
-# 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
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter