Skip to content

Commit

Permalink
Updates welcome email copy to include Manage subscriptions page link
Browse files Browse the repository at this point in the history
  • Loading branch information
matyikriszta committed Jul 21, 2023
1 parent 713b6e9 commit a092212
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/views/member_mailer/welcome_coach.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion app/views/member_mailer/welcome_student.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions spec/mailers/previews/member_mailer_preview.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a092212

Please sign in to comment.