diff --git a/plugins/context_content/controllers/profile/context_content_plugin_profile_controller.rb b/plugins/context_content/controllers/profile/context_content_plugin_profile_controller.rb index 80b897e..b829dce 100644 --- a/plugins/context_content/controllers/profile/context_content_plugin_profile_controller.rb +++ b/plugins/context_content/controllers/profile/context_content_plugin_profile_controller.rb @@ -11,7 +11,7 @@ class ContextContentPluginProfileController < ProfileController page.replace_html "context_content_#{block.id}", :file => "blocks/context_content", :locals => {:block => block, :contents => contents} page.replace_html "context_content_more_#{block.id}", :partial => 'blocks/more', :locals => {:block => block, :contents => contents, :article_id => params[:article_id] } end - else + else render :text => "invalid page", :status => 500 end end diff --git a/plugins/context_content/public/style.css b/plugins/context_content/public/style.css index 3e2c58a..07e03fd 100644 --- a/plugins/context_content/public/style.css +++ b/plugins/context_content/public/style.css @@ -10,7 +10,7 @@ .context-content-block .contents .item .context-icon { background-size: cover; background-repeat: no-repeat; - background-position: center; + background-position: center; height: 100%; } diff --git a/plugins/context_content/test/functional/content_viewer_controller_test.rb b/plugins/context_content/test/functional/content_viewer_controller_test.rb index d3f8d75..5532ca0 100644 --- a/plugins/context_content/test/functional/content_viewer_controller_test.rb +++ b/plugins/context_content/test/functional/content_viewer_controller_test.rb @@ -2,13 +2,13 @@ require File.dirname(__FILE__) + '/../test_helper' class ContentViewerController append_view_path File.join(File.dirname(__FILE__) + '/../../views') - def rescue_action(e) - raise e - end + def rescue_action(e) + raise e + end end class ContentViewerControllerTest < ActionController::TestCase - + def setup @profile = fast_create(Community) @page = fast_create(Folder, :profile_id => @profile.id) diff --git a/plugins/context_content/test/functional/profile_design_controller_test.rb b/plugins/context_content/test/functional/profile_design_controller_test.rb index 2f7810e..77124f7 100644 --- a/plugins/context_content/test/functional/profile_design_controller_test.rb +++ b/plugins/context_content/test/functional/profile_design_controller_test.rb @@ -2,9 +2,9 @@ require File.dirname(__FILE__) + '/../test_helper' class ProfileDesignController append_view_path File.join(File.dirname(__FILE__) + '/../../views') - def rescue_action(e) - raise e - end + def rescue_action(e) + raise e + end end class ProfileDesignControllerTest < ActionController::TestCase diff --git a/plugins/context_content/test/unit/context_content_plugin_test.rb b/plugins/context_content/test/unit/context_content_plugin_test.rb index 88e8b2b..ffdf5dd 100644 --- a/plugins/context_content/test/unit/context_content_plugin_test.rb +++ b/plugins/context_content/test/unit/context_content_plugin_test.rb @@ -1,7 +1,7 @@ require File.dirname(__FILE__) + '/../test_helper' class ContextContentPluginTest < ActiveSupport::TestCase - + include Noosfero::Plugin::HotSpot def setup -- libgit2 0.21.2