Commit 310baab65ae4c2908b2cb3ae26568f366b10e1ce
Committed by
Arthur Esposte
1 parent
a014bdb7
Exists in
master
and in
5 other branches
Last changes on software communities to remove institution. Ran all tests.
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>
Showing
2 changed files
with
5 additions
and
6 deletions
Show diff stats
lib/ext/communities_block.rb
... | ... | @@ -5,15 +5,15 @@ class CommunitiesBlock |
5 | 5 | def profile_list |
6 | 6 | result = get_visible_profiles |
7 | 7 | |
8 | - list_without_software_and_institution = [] | |
8 | + list_without_software = [] | |
9 | 9 | |
10 | 10 | result.each do |profile| |
11 | - if profile.class == Community && !profile.software? && !profile.institution? | |
12 | - list_without_software_and_institution << profile | |
11 | + if profile.class == Community && !profile.software? | |
12 | + list_without_software << profile | |
13 | 13 | end |
14 | 14 | end |
15 | 15 | |
16 | - result = list_without_software_and_institution | |
16 | + result = list_without_software | |
17 | 17 | |
18 | 18 | result.slice(0..get_limit-1) |
19 | 19 | end |
... | ... | @@ -46,4 +46,4 @@ class CommunitiesBlock |
46 | 46 | end |
47 | 47 | end |
48 | 48 | |
49 | -end | |
50 | 49 | \ No newline at end of file |
50 | +end | ... | ... |
lib/software_communities_plugin.rb
... | ... | @@ -53,7 +53,6 @@ class SoftwareCommunitiesPlugin < Noosfero::Plugin |
53 | 53 | { |
54 | 54 | SoftwaresBlock => { :type => [Environment, Person] }, |
55 | 55 | SoftwareInformationBlock => { :type => [Community] }, |
56 | - InstitutionsBlock => { :type => [Environment, Person] }, | |
57 | 56 | DownloadBlock => { :type => [Community] }, |
58 | 57 | RepositoryBlock => { :type => [Community] }, |
59 | 58 | CategoriesAndTagsBlock => { :type => [Community] }, | ... | ... |