Skip to content
Extraits de code Groupes Projets
Valider 3179ebab rédigé par Maxwell Salzberg's avatar Maxwell Salzberg
Parcourir les fichiers

fix tag stream

parent e1aa709c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -36,10 +36,10 @@
.span-6.tags_people
%h3
= t('people', :count => @stream.people_count)
= t('people', :count => @stream.tagge_people_count)
.side_stream.stream
= render :partial => 'people/index', :locals => {:people => @stream.people}
= render :partial => 'people/index', :locals => {:people => @stream.tagged_people}
%br
......
......@@ -19,11 +19,11 @@ class Stream::Tag < Stream::Base
@display_tag_name ||= "##{tag_name}"
end
def people
def tagged_people
@people ||= Person.profile_tagged_with(tag_name).paginate(:page => people_page, :per_page => 15)
end
def people_count
def tagge_people_count
@people_count ||= Person.profile_tagged_with(tag_name).count
end
......
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