Commit 7dc25e62a05faee3e5888891a004bcad36528282
1 parent
32e6b1fe
Exists in
proposals_discussion_block
proposals_discussion: create base for proposals block
Showing
3 changed files
with
43 additions
and
0 deletions
Show diff stats
lib/proposals_discussion_plugin.rb
| ... | ... | @@ -0,0 +1,34 @@ |
| 1 | +class ProposalsDiscussionPlugin::ProposalsBlock < Block | |
| 2 | + | |
| 3 | + def self.description | |
| 4 | + _('Display content produced in proposals discussion.') | |
| 5 | + end | |
| 6 | + | |
| 7 | + def self.short_description | |
| 8 | + _('Display proposals discussions') | |
| 9 | + end | |
| 10 | + | |
| 11 | + def self.pretty_name | |
| 12 | + _('Proposals Discussion Block') | |
| 13 | + end | |
| 14 | + | |
| 15 | + def default_title | |
| 16 | + _('Proposals Discussion Block') | |
| 17 | + end | |
| 18 | + | |
| 19 | + def help | |
| 20 | + _('This block display proposals discussion content.') | |
| 21 | + end | |
| 22 | + | |
| 23 | + def content(args={}) | |
| 24 | + block = self | |
| 25 | + proc do | |
| 26 | + render :file => 'blocks/proposals_block', :locals => {:block => block} | |
| 27 | + end | |
| 28 | + end | |
| 29 | + | |
| 30 | + def footer | |
| 31 | + nil | |
| 32 | + end | |
| 33 | + | |
| 34 | +end | ... | ... |