Commit 65684a164b7a9a8f2ae9486e8dc66aaa981278a0
1 parent
c511a9f9
Exists in
master
and in
22 other branches
Remove trailing spaces from context content plugin
Showing
5 changed files
with
10 additions
and
10 deletions
Show diff stats
plugins/context_content/controllers/profile/context_content_plugin_profile_controller.rb
@@ -11,7 +11,7 @@ class ContextContentPluginProfileController < ProfileController | @@ -11,7 +11,7 @@ class ContextContentPluginProfileController < ProfileController | ||
11 | page.replace_html "context_content_#{block.id}", :file => "blocks/context_content", :locals => {:block => block, :contents => contents} | 11 | page.replace_html "context_content_#{block.id}", :file => "blocks/context_content", :locals => {:block => block, :contents => contents} |
12 | page.replace_html "context_content_more_#{block.id}", :partial => 'blocks/more', :locals => {:block => block, :contents => contents, :article_id => params[:article_id] } | 12 | page.replace_html "context_content_more_#{block.id}", :partial => 'blocks/more', :locals => {:block => block, :contents => contents, :article_id => params[:article_id] } |
13 | end | 13 | end |
14 | - else | 14 | + else |
15 | render :text => "invalid page", :status => 500 | 15 | render :text => "invalid page", :status => 500 |
16 | end | 16 | end |
17 | end | 17 | end |
plugins/context_content/public/style.css
@@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
10 | .context-content-block .contents .item .context-icon { | 10 | .context-content-block .contents .item .context-icon { |
11 | background-size: cover; | 11 | background-size: cover; |
12 | background-repeat: no-repeat; | 12 | background-repeat: no-repeat; |
13 | - background-position: center; | 13 | + background-position: center; |
14 | height: 100%; | 14 | height: 100%; |
15 | } | 15 | } |
16 | 16 |
plugins/context_content/test/functional/content_viewer_controller_test.rb
@@ -2,13 +2,13 @@ require File.dirname(__FILE__) + '/../test_helper' | @@ -2,13 +2,13 @@ require File.dirname(__FILE__) + '/../test_helper' | ||
2 | 2 | ||
3 | class ContentViewerController | 3 | class ContentViewerController |
4 | append_view_path File.join(File.dirname(__FILE__) + '/../../views') | 4 | append_view_path File.join(File.dirname(__FILE__) + '/../../views') |
5 | - def rescue_action(e) | ||
6 | - raise e | ||
7 | - end | 5 | + def rescue_action(e) |
6 | + raise e | ||
7 | + end | ||
8 | end | 8 | end |
9 | 9 | ||
10 | class ContentViewerControllerTest < ActionController::TestCase | 10 | class ContentViewerControllerTest < ActionController::TestCase |
11 | - | 11 | + |
12 | def setup | 12 | def setup |
13 | @profile = fast_create(Community) | 13 | @profile = fast_create(Community) |
14 | @page = fast_create(Folder, :profile_id => @profile.id) | 14 | @page = fast_create(Folder, :profile_id => @profile.id) |
plugins/context_content/test/functional/profile_design_controller_test.rb
@@ -2,9 +2,9 @@ require File.dirname(__FILE__) + '/../test_helper' | @@ -2,9 +2,9 @@ require File.dirname(__FILE__) + '/../test_helper' | ||
2 | 2 | ||
3 | class ProfileDesignController | 3 | class ProfileDesignController |
4 | append_view_path File.join(File.dirname(__FILE__) + '/../../views') | 4 | append_view_path File.join(File.dirname(__FILE__) + '/../../views') |
5 | - def rescue_action(e) | ||
6 | - raise e | ||
7 | - end | 5 | + def rescue_action(e) |
6 | + raise e | ||
7 | + end | ||
8 | end | 8 | end |
9 | 9 | ||
10 | class ProfileDesignControllerTest < ActionController::TestCase | 10 | class ProfileDesignControllerTest < ActionController::TestCase |
plugins/context_content/test/unit/context_content_plugin_test.rb
1 | require File.dirname(__FILE__) + '/../test_helper' | 1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | 2 | ||
3 | class ContextContentPluginTest < ActiveSupport::TestCase | 3 | class ContextContentPluginTest < ActiveSupport::TestCase |
4 | - | 4 | + |
5 | include Noosfero::Plugin::HotSpot | 5 | include Noosfero::Plugin::HotSpot |
6 | 6 | ||
7 | def setup | 7 | def setup |