Skip to content

Commit

Permalink
improve-text-for-contributors (#11532)
Browse files Browse the repository at this point in the history
* improve-text-for-contributors

* update

* Update en.yml

fix indentation

* fix indentation

* Update en.yml

* Update en.yml

* Update notes_controller_test.rb

* Update notes_controller_test.rb

* use line breaks inline

---------

Co-authored-by: Ogunbanjo oluwadamilare <[email protected]>
Co-authored-by: Cess <[email protected]>
Co-authored-by: Tilda Udufo <[email protected]>
  • Loading branch information
4 people authored Jan 30, 2023
1 parent f845ccd commit 5e1d8c2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1133,10 +1133,13 @@ en:
logged_out: "Successfully logged out."
notes_controller:
research_notes: "Research notes"
thank_you_for_contribution: "Success! Thank you for contributing open research,
and thanks for your patience while your post is approved by <a href='/wiki/moderation'>community
moderators</a> and we'll email you when it is published. In the meantime, if
you have more to contribute, feel free to do so."
thank_you_for_contribution: |
<h2>Success! You did it! Hooray!</h2>
<hr>
<p>Thank you so much for contributing open research and being part of our community.</p>
<h2>Here's what's happening now:</h2>
<hr>
<p>Your <a href='/wiki/first-contribution'>first contribution</a> is awaiting approval by <a href='/wiki/moderation'>community moderators</a>. <b>If you have asked an urgent question about an environmental concern, we will prioritize reviewing it</b>. Thank you for your patience, in the next hours your contribution should be public. We will email you when it is published. In the meantime, if you have more to contribute, feel free to do so. Visit the <a href='/wiki/welcome'>Welcome Page</a> to discover more ways to connect.</p>
thank_you_for_question: "Success! Thank you for contributing with a question, and
thanks for your patience while your question is approved by <a href='/wiki/moderation'>community
moderators</a> and we'll email you when it is published."
Expand Down
3 changes: 1 addition & 2 deletions test/functional/notes_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ def teardown
tags: 'balloon-mapping,event'
}
# , :main_image => "/images/testimage.jpg"

assert_equal "Success! Thank you for contributing open research, and thanks for your patience while your post is approved by <a href='/wiki/moderation'>community moderators</a> and we'll email you when it is published. In the meantime, if you have more to contribute, feel free to do so.", flash[:notice]
assert_equal "<h2>Success! You did it! Hooray!</h2>\n<hr>\n<p>Thank you so much for contributing open research and being part of our community.</p>\n<h2>Here's what's happening now:</h2>\n<hr>\n<p>Your <a href='/wiki/first-contribution'>first contribution</a> is awaiting approval by <a href='/wiki/moderation'>community moderators</a>. <b>If you have asked an urgent question about an environmental concern, we will prioritize reviewing it</b>. Thank you for your patience, in the next hours your contribution should be public. We will email you when it is published. In the meantime, if you have more to contribute, feel free to do so. Visit the <a href='/wiki/welcome'>Welcome Page</a> to discover more ways to connect.</p>\n", flash[:notice]
assert_nil flash[:warning] # no double notice
assert_equal 4, Node.last.status
assert_equal title, Node.last.title
Expand Down

0 comments on commit 5e1d8c2

Please sign in to comment.