diff --git a/src/noosfero-spb/noosfero-spb-theme/css/community-pages.css b/src/noosfero-spb/noosfero-spb-theme/css/community-pages.css index 1783a3b..6c1361a 100644 --- a/src/noosfero-spb/noosfero-spb-theme/css/community-pages.css +++ b/src/noosfero-spb/noosfero-spb-theme/css/community-pages.css @@ -1276,11 +1276,15 @@ float: left; } /*software-events-block - sidebar - box2*/ - #content .box-2 .software-events-block .software-community-events-block{ border:1px solid #C0C1C1; border-radius:4px; background-color:#ECEDF1; + display: none; +} + +.article-type-event #content .box-2 .software-events-block .software-community-events-block { + display: block; } #content .box-2 .software-events-block .software-events-list-item{ diff --git a/src/noosfero-spb/software_communities/lib/software_communities_plugin.rb b/src/noosfero-spb/software_communities/lib/software_communities_plugin.rb index b0e3d24..3663210 100644 --- a/src/noosfero-spb/software_communities/lib/software_communities_plugin.rb +++ b/src/noosfero-spb/software_communities/lib/software_communities_plugin.rb @@ -138,6 +138,12 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin } end + def html_tag_classes + lambda do + "article-type-#{@page.css_class_name}" if @page + end + end + # FIXME - if in error log apears has_permission?, try to use this method def has_permission?(person, permission, target) person.has_permission_without_plugins?(permission, target) -- libgit2 0.21.2