Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update email subscription banner content #2383

Merged
merged 2 commits into from
Mar 10, 2022

Conversation

danacotoran
Copy link
Contributor

Update the single page notification success banner content based on
input from our designers and reduce some repetition in the
email_subscribe_unsubscribe_flash partial


https://trello.com/c/bPoMTXr0

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Update the single page notification success banner content based on
input from our designers and reduce some repetition in the
email_subscribe_unsubscribe_flash partial
@govuk-ci govuk-ci temporarily deployed to government-f-success-al-rp22gp March 8, 2022 15:57 Inactive
@@ -46,6 +48,10 @@ def service_sign_in_options
end
end

def show_email_subscription_success_banner?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When we have a helper method that's needed in the view but not the controller, we usually put it in its own helper file - see this comment from Huw explaining it on one of my PRs.

So in this case we'd have a app/helpers/content_items_helper.rb file with a ContentItemsHelper class and this method.

What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @alex9smith, that makes sense, I get fuzzy on what is best practice sometimes, it's good to be reminded!

I've made the changes as suggested, let me know if that's okay.

@govuk-ci govuk-ci temporarily deployed to government-f-success-al-rp22gp March 9, 2022 18:01 Inactive
Copy link
Member

@alex9smith alex9smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍🏻

@danacotoran danacotoran merged commit 4d48572 into main Mar 10, 2022
@danacotoran danacotoran deleted the success_alert_content_update branch March 10, 2022 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants