Commit b0fc622edf0c30afdda959b826c4201dfdf76b65
1 parent
f86e5473
Exists in
master
and in
47 other branches
Display lateral box software event block only in event pages
Signed-off-by: ArthurJahn <stutrzbecher@gmail.com> Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> See merge request !91
Showing
2 changed files
with
11 additions
and
1 deletions
Show diff stats
src/noosfero-spb/noosfero-spb-theme/css/community-pages.css
... | ... | @@ -1276,11 +1276,15 @@ float: left; |
1276 | 1276 | } |
1277 | 1277 | |
1278 | 1278 | /*software-events-block - sidebar - box2*/ |
1279 | - | |
1280 | 1279 | #content .box-2 .software-events-block .software-community-events-block{ |
1281 | 1280 | border:1px solid #C0C1C1; |
1282 | 1281 | border-radius:4px; |
1283 | 1282 | background-color:#ECEDF1; |
1283 | + display: none; | |
1284 | +} | |
1285 | + | |
1286 | +.article-type-event #content .box-2 .software-events-block .software-community-events-block { | |
1287 | + display: block; | |
1284 | 1288 | } |
1285 | 1289 | |
1286 | 1290 | #content .box-2 .software-events-block .software-events-list-item{ | ... | ... |
src/noosfero-spb/software_communities/lib/software_communities_plugin.rb
... | ... | @@ -138,6 +138,12 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin |
138 | 138 | } |
139 | 139 | end |
140 | 140 | |
141 | + def html_tag_classes | |
142 | + lambda do | |
143 | + "article-type-#{@page.css_class_name}" if @page | |
144 | + end | |
145 | + end | |
146 | + | |
141 | 147 | # FIXME - if in error log apears has_permission?, try to use this method |
142 | 148 | def has_permission?(person, permission, target) |
143 | 149 | person.has_permission_without_plugins?(permission, target) | ... | ... |