34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3 or later. See
|
|
-# the COPYRIGHT file.
|
|
|
|
#aspect_stream_header
|
|
#sort_by
|
|
= t('.recently')
|
|
%span.controls
|
|
= link_to_if(session[:sort_order] == 'created_at', t('.commented_on'), stream.link(:sort_order => 'updated_at'))
|
|
·
|
|
= link_to_if(session[:sort_order] == 'updated_at', t('.posted'), stream.link(:sort_order => 'created_at' ))
|
|
|
|
%h3
|
|
= stream.title
|
|
|
|
= render 'shared/publisher', :selected_aspects => stream.aspects, :aspect_ids => stream.aspect_ids, :for_all_aspects => stream.for_all_aspects?, :aspect => stream.aspect
|
|
= render 'aspects/no_posts_message'
|
|
|
|
- if current_user.contacts.size < 2
|
|
= render 'aspects/no_contacts_message'
|
|
|
|
#main_stream.stream{:data => {:guids => stream.aspect_ids.join(',')}}
|
|
<<<<<<< HEAD
|
|
- if stream.ajax_stream?
|
|
=======
|
|
- if stream.ajax_posts?
|
|
>>>>>>> added tag follow feature, mention page feature. is now pretty easy to add new types of streams, but some more refactoring could make it even nicer
|
|
#pagination
|
|
=link_to(t('more'), next_page_path(:ajax_stream => true), :class => 'paginate')
|
|
|
|
- elsif stream.posts.length > 0
|
|
= render 'shared/stream', :posts => stream.posts
|
|
#pagination
|
|
=link_to(t('more'), next_page_path, :class => 'paginate')
|