Commit 3d85887854a294fc9cdc220cbc1ee310f5e87927

Authored by Rodrigo Souto
1 parent 2536d367

[work-assingment] Starting WorkAssingment plugin

  * Adding the button to add the new content in the cms including the
  name, description and icon.
plugins/work_assignment/lib/work_assignment_plugin.rb 0 → 100644
... ... @@ -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
... ...
plugins/work_assignment/public/style.css 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +.icon-newwork-assignment { background-image: url(../../designs/icons/tango/Tango/16x16/categories/applications-office.png) }
  2 +.icon-work-assignment { background-image: url(../../designs/icons/tango/Tango/16x16/categories/applications-office.png) }
... ...