Commit 3d85887854a294fc9cdc220cbc1ee310f5e87927
1 parent
2536d367
Exists in
master
and in
28 other branches
[work-assingment] Starting WorkAssingment plugin
* Adding the button to add the new content in the cms including the name, description and icon.
Showing
3 changed files
with
35 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,19 @@ |
| 1 | +class WorkAssignmentPlugin < Noosfero::Plugin | |
| 2 | + | |
| 3 | + def self.plugin_name | |
| 4 | + "Work Assignment" | |
| 5 | + end | |
| 6 | + | |
| 7 | + def self.plugin_description | |
| 8 | + _("New kind of content for work organization.") | |
| 9 | + end | |
| 10 | + | |
| 11 | + def content_types | |
| 12 | + [WorkAssignmentPlugin::WorkAssignment] if context.profile.organization? | |
| 13 | + end | |
| 14 | + | |
| 15 | + def stylesheet? | |
| 16 | + true | |
| 17 | + end | |
| 18 | + | |
| 19 | +end | ... | ... |
plugins/work_assignment/lib/work_assignment_plugin/work_assignment.rb
0 → 100644
| ... | ... | @@ -0,0 +1,14 @@ |
| 1 | +class WorkAssignmentPlugin::WorkAssignment < Folder | |
| 2 | + | |
| 3 | + def self.icon_name(article = nil) | |
| 4 | + 'work-assignment' | |
| 5 | + end | |
| 6 | + | |
| 7 | + def self.short_description | |
| 8 | + _('Work Assignment') | |
| 9 | + end | |
| 10 | + | |
| 11 | + def self.description | |
| 12 | + _('Defines a work to be done by the members and receives their submissions about this work.') | |
| 13 | + end | |
| 14 | +end | ... | ... |