From 5e1d8c2bac1c5d2ad7faf532162a72c6f65c9898 Mon Sep 17 00:00:00 2001 From: Ogunbanjo Oluwadamilare Date: Mon, 30 Jan 2023 17:15:03 +0100 Subject: [PATCH] improve-text-for-contributors (#11532) * 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 Co-authored-by: Cess Co-authored-by: Tilda Udufo --- config/locales/en.yml | 11 +++++++---- test/functional/notes_controller_test.rb | 3 +-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index aff68b9445..def698224d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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 community - moderators 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: | +

Success! You did it! Hooray!

+
+

Thank you so much for contributing open research and being part of our community.

+

Here's what's happening now:

+
+

Your first contribution is awaiting approval by community moderators. If you have asked an urgent question about an environmental concern, we will prioritize reviewing it. 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 Welcome Page to discover more ways to connect.

thank_you_for_question: "Success! Thank you for contributing with a question, and thanks for your patience while your question is approved by community moderators and we'll email you when it is published." diff --git a/test/functional/notes_controller_test.rb b/test/functional/notes_controller_test.rb index 0952b864d0..cadff06082 100644 --- a/test/functional/notes_controller_test.rb +++ b/test/functional/notes_controller_test.rb @@ -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 community moderators 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 "

Success! You did it! Hooray!

\n
\n

Thank you so much for contributing open research and being part of our community.

\n

Here's what's happening now:

\n
\n

Your first contribution is awaiting approval by community moderators. If you have asked an urgent question about an environmental concern, we will prioritize reviewing it. 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 Welcome Page to discover more ways to connect.

\n", flash[:notice] assert_nil flash[:warning] # no double notice assert_equal 4, Node.last.status assert_equal title, Node.last.title