Commit 2e1240262a5488fd23a8df61db3d3e1cb5c958d0
1 parent
d139ca2b
Exists in
master
and in
1 other branch
Adds ratings count to ratings list
Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com> Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/noosfero-spb/software_communities/lib/software_communities_plugin.rb
... | ... | @@ -124,7 +124,8 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin |
124 | 124 | |
125 | 125 | def organization_ratings_title |
126 | 126 | title = _('Use reports') |
127 | - Proc::new do "<h1 class='title'>#{title}</h1>" end | |
127 | + ratings_count = OrganizationRating.statistics_for_profile(profile)[:total] | |
128 | + Proc::new do "<h1 class='title'>#{title} (#{ratings_count})</h1>" end | |
128 | 129 | end |
129 | 130 | |
130 | 131 | def organization_ratings_plugin_container_extra_fields user_rating | ... | ... |