pairwise_plugin.rb
623 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class PairwisePlugin < Noosfero::Plugin
def self.plugin_name
"PairwisePlugin"
end
def self.plugin_description
_("A plugin that add a pairwise client feature to noosfero.")
end
# def self.extra_blocks
# {
# PairwiseBlock => {:type => ['community', 'profile'] }
# }
# end
def self.extra_blocks
{ PairwisePlugin::QuestionsGroupListBlock => {} }
end
def content_types
[PairwisePlugin::PairwiseContent]
# if context.profile.is_a?(Community)
# else
# []
# end
end
def stylesheet?
true
end
def js_files
'javascripts/pairwise.js'
end
end