made toggle for post time on aspects#index
This commit is contained in:
parent
3c8a87783f
commit
43f17b3ed8
3 changed files with 10 additions and 2 deletions
|
|
@ -5,7 +5,8 @@
|
|||
module AspectsHelper
|
||||
def link_for_aspect(aspect, opts={})
|
||||
opts[:params] ||= {}
|
||||
opts[:params] = opts[:params].merge("a_ids[]" => aspect.id)
|
||||
params ||= {}
|
||||
opts[:params] = opts[:params].merge("a_ids[]" => aspect.id, :created_at => params[:created_at])
|
||||
|
||||
link_to aspect.name, aspects_path( opts[:params] ), opts
|
||||
end
|
||||
|
|
|
|||
|
|
@ -4,8 +4,12 @@
|
|||
|
||||
|
||||
= render 'shared/publisher', :aspect => aspect, :aspect_ids => aspect_ids
|
||||
.prepend-11
|
||||
sort by:
|
||||
= link_to_if(params[:created_at], t('.activity'), aspects_path(:a_ids => params[:a_ids]))
|
||||
|
|
||||
= link_to_unless(params[:created_at], t('.post_time'), aspects_path(:a_ids => params[:a_ids], :created_at => true ))
|
||||
#main_stream.stream{:data => {:guids => aspect_ids.join(',')}}
|
||||
=request.url
|
||||
= render 'shared/stream', :posts => fakes
|
||||
%a.paginate
|
||||
= t("more")
|
||||
|
|
|
|||
|
|
@ -169,6 +169,9 @@ en:
|
|||
make_aspect_list_visible: "make aspect list visible to others in aspect"
|
||||
aspect_contacts:
|
||||
done_editing: "done editing"
|
||||
aspect_stream:
|
||||
activity: 'activity'
|
||||
post_time: 'post time'
|
||||
show:
|
||||
edit_aspect: "edit aspect"
|
||||
no_contacts_message:
|
||||
|
|
|
|||
Loading…
Reference in a new issue