Commit 218a0bc12d1d3ac37e3929c91c587565a25097a1
Committed by
Álvaro Fernando Matos de Souza
1 parent
8d24d6f6
Exists in
master
and in
5 other branches
Adding hotspot community ratings title
Signed-off-by: Pedro de Lyra Pereira <pedrodelyra@gmail.com> Signed-off-by: Fábio Teixeira <fabio1079@gmail.com>
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
lib/software_communities_plugin.rb
@@ -78,6 +78,10 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin | @@ -78,6 +78,10 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin | ||
78 | Proc::new do _("Rate this software") end | 78 | Proc::new do _("Rate this software") end |
79 | end | 79 | end |
80 | 80 | ||
81 | + def communities_ratings_title | ||
82 | + Proc::new do "<h1 class='title'>#{_("Use reports")}</h1>" end | ||
83 | + end | ||
84 | + | ||
81 | # FIXME - if in error log apears has_permission?, try to use this method | 85 | # FIXME - if in error log apears has_permission?, try to use this method |
82 | def has_permission?(person, permission, target) | 86 | def has_permission?(person, permission, target) |
83 | person.has_permission_without_plugins?(permission, target) | 87 | person.has_permission_without_plugins?(permission, target) |