fix tag stream
This commit is contained in:
parent
e1aa709c85
commit
3179ebabc9
2 changed files with 4 additions and 4 deletions
|
|
@ -36,10 +36,10 @@
|
||||||
|
|
||||||
.span-6.tags_people
|
.span-6.tags_people
|
||||||
%h3
|
%h3
|
||||||
= t('people', :count => @stream.people_count)
|
= t('people', :count => @stream.tagge_people_count)
|
||||||
|
|
||||||
.side_stream.stream
|
.side_stream.stream
|
||||||
= render :partial => 'people/index', :locals => {:people => @stream.people}
|
= render :partial => 'people/index', :locals => {:people => @stream.tagged_people}
|
||||||
|
|
||||||
%br
|
%br
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,11 @@ class Stream::Tag < Stream::Base
|
||||||
@display_tag_name ||= "##{tag_name}"
|
@display_tag_name ||= "##{tag_name}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def people
|
def tagged_people
|
||||||
@people ||= Person.profile_tagged_with(tag_name).paginate(:page => people_page, :per_page => 15)
|
@people ||= Person.profile_tagged_with(tag_name).paginate(:page => people_page, :per_page => 15)
|
||||||
end
|
end
|
||||||
|
|
||||||
def people_count
|
def tagge_people_count
|
||||||
@people_count ||= Person.profile_tagged_with(tag_name).count
|
@people_count ||= Person.profile_tagged_with(tag_name).count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue