From a0922121eab36ed0f7d558ddf282b000e9a188c1 Mon Sep 17 00:00:00 2001 From: Kriszta Matyi Date: Wed, 28 Jun 2023 14:49:03 -0700 Subject: [PATCH] Updates welcome email copy to include Manage subscriptions page link --- app/views/member_mailer/welcome_coach.html.haml | 7 ++++++- app/views/member_mailer/welcome_student.html.haml | 7 ++++++- spec/mailers/previews/member_mailer_preview.rb | 8 ++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 spec/mailers/previews/member_mailer_preview.rb diff --git a/app/views/member_mailer/welcome_coach.html.haml b/app/views/member_mailer/welcome_coach.html.haml index a78b2d7ae..eebc9efb0 100644 --- a/app/views/member_mailer/welcome_coach.html.haml +++ b/app/views/member_mailer/welcome_coach.html.haml @@ -5,7 +5,12 @@ %p - if @member.subscriptions.any? - You'll receive email invitations to our workshops as soon as they are open for RSVP. Places are limited, so be sure to respond quickly if you would like to attend. + You'll receive email invitations to our workshops as soon as they are open for RSVP. + - else + We send out invitations to our events via email. + = link_to "Sign up on our subscriptions page", subscriptions_url + to receive invitations to our workshops. + Places are limited, so be sure to respond quickly if you would like to attend. %p %strong diff --git a/app/views/member_mailer/welcome_student.html.haml b/app/views/member_mailer/welcome_student.html.haml index 8f23c2477..71f012f39 100644 --- a/app/views/member_mailer/welcome_student.html.haml +++ b/app/views/member_mailer/welcome_student.html.haml @@ -4,7 +4,12 @@ %p - if @member.subscriptions.any? - You'll receive email invitations to our events as soon as they are open for RSVP. Places are limited, so be sure to respond quickly if you want to attend. + You'll receive email invitations to our events as soon as they are open for RSVP. + - else + We send out invitations to our events via email. + = link_to "Sign up on our subscriptions page", subscriptions_url + to receive invitations to our workshops. + Places are limited, so be sure to respond quickly if you want to attend. %p If you accept an invitation and can no longer make it, please cancel your spot as soon as possible so we can allocate it to someone else. If you take a place on the waiting list, please keep that evening free and check your emails frequently. You will be notified at least three hours before the event if you receive a place. diff --git a/spec/mailers/previews/member_mailer_preview.rb b/spec/mailers/previews/member_mailer_preview.rb new file mode 100644 index 000000000..571ae2e0e --- /dev/null +++ b/spec/mailers/previews/member_mailer_preview.rb @@ -0,0 +1,8 @@ +class MemberMailerPreview < ActionMailer::Preview + def welcome_student + MemberMailer.welcome_student(Member.first) + end + def welcome_coach + MemberMailer.welcome_coach(Member.first) + end +end \ No newline at end of file