Commit 2ba6f013e4dd298cea3d8227f64b8608b6adabbc
Committed by
Paulo Meireles
1 parent
856fb1b9
Exists in
master
and in
28 other branches
[Mezuro] removed Mezuro content types, just panel control buttons
Showing
4 changed files
with
2 additions
and
18 deletions
Show diff stats
plugins/mezuro/lib/mezuro_plugin.rb
| ... | ... | @@ -14,14 +14,6 @@ class MezuroPlugin < Noosfero::Plugin |
| 14 | 14 | _("A metric analizer plugin.") |
| 15 | 15 | end |
| 16 | 16 | |
| 17 | - def content_types | |
| 18 | - if context.profile.is_a?(Community) | |
| 19 | - MezuroPlugin::ProjectContent | |
| 20 | - else | |
| 21 | - MezuroPlugin::ConfigurationContent | |
| 22 | - end | |
| 23 | - end | |
| 24 | - | |
| 25 | 17 | def control_panel_buttons |
| 26 | 18 | if context.profile.is_a?(Community) |
| 27 | 19 | {:title => _('Mezuro Project'), :url => {:controller => 'cms', :action => 'new', :profile => context.profile.identifier, :type => 'MezuroPlugin::ProjectContent'}, :icon => 'mezuro' } | ... | ... |
plugins/mezuro/test/unit/mezuro_plugin/configuration_content_test.rb
| ... | ... | @@ -14,7 +14,7 @@ class ConfigurationContentTest < ActiveSupport::TestCase |
| 14 | 14 | end |
| 15 | 15 | |
| 16 | 16 | should 'provide proper short description' do |
| 17 | - assert_equal 'Kalibro configuration', MezuroPlugin::ConfigurationContent.short_description | |
| 17 | + assert_equal 'Mezuro configuration', MezuroPlugin::ConfigurationContent.short_description | |
| 18 | 18 | end |
| 19 | 19 | |
| 20 | 20 | should 'provide proper description' do | ... | ... |
plugins/mezuro/test/unit/mezuro_plugin/project_content_test.rb
| ... | ... | @@ -16,7 +16,7 @@ class ProjectContentTest < ActiveSupport::TestCase |
| 16 | 16 | end |
| 17 | 17 | |
| 18 | 18 | should 'provide proper short description' do |
| 19 | - assert_equal 'Kalibro project', MezuroPlugin::ProjectContent.short_description | |
| 19 | + assert_equal 'Mezuro project', MezuroPlugin::ProjectContent.short_description | |
| 20 | 20 | end |
| 21 | 21 | |
| 22 | 22 | should 'provide proper description' do | ... | ... |
plugins/mezuro/test/unit/mezuro_plugin_test.rb
| ... | ... | @@ -18,14 +18,6 @@ class MezuroPluginTest < ActiveSupport::TestCase |
| 18 | 18 | assert_equal _('A metric analizer plugin.'), MezuroPlugin.plugin_description |
| 19 | 19 | end |
| 20 | 20 | |
| 21 | - should 'have configuration content type' do | |
| 22 | - assert_includes @plugin.content_types, MezuroPlugin::ConfigurationContent | |
| 23 | - end | |
| 24 | - | |
| 25 | - should 'have project content type' do | |
| 26 | - assert_includes @plugin.content_types, MezuroPlugin::ProjectContent | |
| 27 | - end | |
| 28 | - | |
| 29 | 21 | should 'have stylesheet' do |
| 30 | 22 | assert @plugin.stylesheet? |
| 31 | 23 | end | ... | ... |