Skip to content

Commit

Permalink
set node image default of basic logo (publiclab#3157)
Browse files Browse the repository at this point in the history
* set node image default of basic logo

* Add files via upload

* Update notes_controller_test.rb
  • Loading branch information
jywarren authored Jul 26, 2018
1 parent cf01bd5 commit 19bd246
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/notes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def image
if node.main_image
redirect_to URI.parse(node.main_image.path(params[:size])).path
else
redirect_to 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='
redirect_to '/logo.png'
end
end

Expand Down
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion test/functional/notes_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def teardown
get :image, params: { id: node.id }

assert_response :redirect
assert_redirected_to 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='
assert_redirected_to '/logo.png'
end

test 'should get tools' do
Expand Down

0 comments on commit 19bd246

Please sign in to comment.