diaspora/app/views/aspects/_aspect_stream.haml
2011-03-15 13:21:36 -07:00

19 lines
810 B
Text

-# Copyright (c) 2010, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
= render 'shared/publisher', :aspect => aspect, :aspect_ids => aspect_ids
#sort_by
= t('.sort_by')
= link_to_if(session[:sort_order] == 'created_at', t('.activity'), aspects_path(:a_ids => params[:a_ids], :sort_order => 'updated_at'))
|
= link_to_if(session[:sort_order] == 'updated_at', t('.post_time'), aspects_path(:a_ids => params[:a_ids], :sort_order => 'created_at' ))
#main_stream.stream{:data => {:guids => aspect_ids.join(',')}}
- if posts.length > 0
= render 'shared/stream', :posts => fakes
%a.paginate
= t("more")
- else
= render 'aspects/no_posts_message', :post_count => posts.length
= will_paginate posts