diff --git a/plugins/community_block/lib/community_block.rb b/plugins/community_block/lib/community_block.rb index d611a1c..aef39f9 100644 --- a/plugins/community_block/lib/community_block.rb +++ b/plugins/community_block/lib/community_block.rb @@ -1,5 +1,5 @@ class CommunityBlock < Block - + def self.description "Community block" end diff --git a/plugins/community_block/public/style.css b/plugins/community_block/public/style.css index e2d3a46..c755c24 100644 --- a/plugins/community_block/public/style.css +++ b/plugins/community_block/public/style.css @@ -88,12 +88,12 @@ #content .box-1 .community-block .community-block-button.icon-remove { width: 20px; background-image: url('/designs/icons/default/Tango/16x16/actions/remove.png'); -} +} #content .box-1 .community-block .community-block-button.icon-arrow { width: 16px; background-image: url('/images/top-arrow.png'); -} +} #content .box-1 .community-block .community-block-button:hover { background-color: #DDDDDD; diff --git a/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb b/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb index bf36148..d10aa84 100644 --- a/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb +++ b/plugins/community_block/test/functional/commmunity_block_plugin_profile_design_controller_test.rb @@ -83,5 +83,5 @@ class ProfileControllerTest < ActionController::TestCase get :index, :profile => @community.identifier assert_no_tag :span, :attributes => {:class => 'community-block-button icon-arrow'} end - + end diff --git a/plugins/community_block/test/unit/commmunity_block_plugin_test.rb b/plugins/community_block/test/unit/commmunity_block_plugin_test.rb index 122bd23..2c51a5b 100644 --- a/plugins/community_block/test/unit/commmunity_block_plugin_test.rb +++ b/plugins/community_block/test/unit/commmunity_block_plugin_test.rb @@ -5,7 +5,7 @@ class CommunityBlockPluginTest < ActiveSupport::TestCase def setup @plugin = CommunityBlockPlugin.new end - + should 'be a noosfero plugin' do assert_kind_of Noosfero::Plugin, @plugin end @@ -29,5 +29,5 @@ class CommunityBlockPluginTest < ActiveSupport::TestCase should "return false for class method has_admin_url?" do assert !CommunityBlockPlugin.has_admin_url? end - + end diff --git a/plugins/community_block/views/community_block.rhtml b/plugins/community_block/views/community_block.rhtml index 717cd86..21ab18f 100644 --- a/plugins/community_block/views/community_block.rhtml +++ b/plugins/community_block/views/community_block.rhtml @@ -15,7 +15,7 @@ end links.push(_('Report abuse') => {:href => url_for({:controller => 'profile', :action => 'report_abuse', :profile => profile.identifier})}) - + if !user.nil? && user.has_permission?('edit_profile', profile) links.push(_('Control panel') => {:href => url_for({:controller => 'profile_editor', :profile => profile.identifier})}) end %> @@ -27,7 +27,7 @@ :class => 'simplemenu-trigger') %> <% end %> - + <% if logged_in? %> <% if profile.members.include?(user) || profile.already_request_membership?(user) %> <%= link_to( -- libgit2 0.21.2