new user confirm email
update user confirm email contents and change to the new layout
This commit is contained in:
parent
182deaa177
commit
69a37495b5
|
|
@ -31,9 +31,9 @@ module JamRuby
|
|||
sendgrid_recipients([user.email])
|
||||
sendgrid_substitute('@USERID', [user.id])
|
||||
|
||||
mail(:to => user.email, :subject => "Please confirm your JamKazam email") do |format|
|
||||
mail(:to => user.email, :subject => "Please confirm your JamKazam email address") do |format|
|
||||
format.text
|
||||
format.html
|
||||
format.html { render layout: "user_mailer_beta" }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,34 @@
|
|||
<% provide(:title, 'Welcome to JamKazam!') %>
|
||||
|
||||
<p>We’re delighted you have joined our community of <%= APP_CONFIG.musician_count %> musicians. We’d like to send you an orientation email with information and resource links that will help you get the most out of JamKazam. Please <a style="color: #ffcc00;" href="<%= @signup_confirm_url %>">click here to confirm this email</a> has reached you successfully and we will then send the orientation email.</p>
|
||||
<p>
|
||||
<%= I18n.t 'user_mailer.confirm_email.paragraph1' -%>
|
||||
</p>
|
||||
|
||||
<p>If you have received this email but aren’t familiar with JamKazam or JamTracks, then someone has registered at our website using your email address, and you can just ignore and delete this email.</p>
|
||||
<div style="text-align: center">
|
||||
<a
|
||||
href="<%= @signup_confirm_url %>"
|
||||
style="
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
background-color: #2c7be5;
|
||||
border-color: #2c7be5;
|
||||
border: 1px solid transparent;
|
||||
padding: 0.3125rem 1rem;
|
||||
line-height: 2.5;
|
||||
font-size: 1em;
|
||||
border-radius: 0.25rem;
|
||||
transition: color 0.15s ease-in-out,
|
||||
background-color 0.15s ease-in-out, border-color 0.15s ease-in-out,
|
||||
box-shadow 0.15s ease-in-out;
|
||||
"
|
||||
><%= I18n.t 'user_mailer.confirm_email.confirm_email' -%></a
|
||||
>
|
||||
</div>
|
||||
|
||||
<p>Best Regards,<br/>
|
||||
Team JamKazam
|
||||
<p>
|
||||
<%= I18n.t 'user_mailer.confirm_email.paragraph2' -%>
|
||||
</p>
|
||||
|
||||
<p><%= I18n.t 'user_mailer.confirm_email.best_wishes' -%><br/>
|
||||
<%= I18n.t 'user_mailer.confirm_email.signature' -%>
|
||||
</p>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<% provide(:title, 'Welcome to JamKazam!') %>
|
||||
|
||||
<p>We’re delighted you have joined our community of <%= APP_CONFIG.musician_count %> musicians. We’d like to send you an orientation email with information and resource links that will help you get the most out of JamKazam. Please <a style="color: #ffcc00;" href="<%= @signup_confirm_url %>">click here to confirm this email</a> has reached you successfully and we will then send the orientation email.</p>
|
||||
|
||||
<p>If you have received this email but aren’t familiar with JamKazam or JamTracks, then someone has registered at our website using your email address, and you can just ignore and delete this email.</p>
|
||||
|
||||
<p>Best Regards,<br/>
|
||||
Team JamKazam
|
||||
</p>
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
Welcome to JamKazam!
|
||||
<%= I18n.t 'user_mailer.confirm_email.paragraph1' -%>
|
||||
|
||||
We’re delighted you have joined our community of <%= APP_CONFIG.musician_count %> musicians. We’d like to send you an orientation email with information and resource links that will help you get the most out of JamKazam. Please click <%= @signup_confirm_url %> to confirm this email has reached you successfully and we will then send the orientation email.
|
||||
<%= @signup_confirm_url %>
|
||||
|
||||
If you have received this email but aren’t familiar with JamKazam or JamTracks, then someone has registered at our website using your email address, and you can just ignore and delete this email.
|
||||
<%= I18n.t 'user_mailer.confirm_email.paragraph2' -%>
|
||||
|
||||
Best Regards,
|
||||
Team JamKazam
|
||||
<%= I18n.t 'user_mailer.confirm_email.best_wishes' -%>
|
||||
<%= I18n.t 'user_mailer.confirm_email.signature' -%>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
Welcome to JamKazam!
|
||||
|
||||
We’re delighted you have joined our community of <%= APP_CONFIG.musician_count %> musicians. We’d like to send you an orientation email with information and resource links that will help you get the most out of JamKazam. Please click <%= @signup_confirm_url %> to confirm this email has reached you successfully and we will then send the orientation email.
|
||||
|
||||
If you have received this email but aren’t familiar with JamKazam or JamTracks, then someone has registered at our website using your email address, and you can just ignore and delete this email.
|
||||
|
||||
Best Regards,
|
||||
Team JamKazam
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
Hi <%= @user.first_name %>,
|
||||
<% end %>
|
||||
|
||||
The following musicians have joined JamKazam within the last week and have low internet latency to you that will support enjoyable sessions. If you'd like to make more musical connections, we encourage you to use the links below to send these new users a welcome message and perhaps arrange a session to play together.
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.paragraph1' -%>
|
||||
|
||||
<%
|
||||
@musicians_data.each do | data | -%>
|
||||
|
|
@ -13,20 +13,20 @@ The following musicians have joined JamKazam within the last week and have low i
|
|||
latency = latencies.find{|l| l[:user_id] == musician.id }
|
||||
-%>
|
||||
<%= musician.first_name %> <%= musician.last_name %>
|
||||
Latency To You: <%= latency_info(latency) %>
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.latency_to_you' -%>: <%= latency_info(latency) %>
|
||||
<% if musician.last_active_timestamp -%>
|
||||
Last Active On: <%= time_ago_in_words(Time.at(musician.last_active_timestamp)) %> ago
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.last_active' -%>: <%= time_ago_in_words(Time.at(musician.last_active_timestamp)) %> ago
|
||||
<% end -%>
|
||||
<% musician.musician_instruments.each do |mi| -%>
|
||||
<%= mi.description %> (<%= @instrument_proficiencies[mi.proficiency_level.to_s.to_sym] %>)
|
||||
<% end -%>
|
||||
View Profile: <%= APP_CONFIG.spa_origin -%>/friends?id=<%= musician.id %>&open=details
|
||||
Send Message: <%= APP_CONFIG.spa_origin -%>/friends?id=<%= musician.id %>&open=message
|
||||
Send Friend Request: <%= APP_CONFIG.spa_origin -%>/friends?id=<%= musician.id %>&open=connect
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.view_profile' -%>: <%= APP_CONFIG.spa_origin -%>/friends?id=<%= musician.id %>&open=details
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.send_message' -%>: <%= APP_CONFIG.spa_origin -%>/friends?id=<%= musician.id %>&open=message
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.send_friend_request' -%>: <%= APP_CONFIG.spa_origin -%>/friends?id=<%= musician.id %>&open=connect
|
||||
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
To find great musical matches across the entire JamKazam commiunity and make new connections, use the link below to access our musician search feature. This let you filter JamKazammers by latency, instruments, skill level, genre interests, last active day and more.
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.paragraph2' -%>
|
||||
|
||||
Search JamKazam Musicians: <%= APP_CONFIG.spa_origin -%>/friends
|
||||
<%= I18n.t 'user_mailer.new_musicians_match.search_musicians' -%>: <%= APP_CONFIG.spa_origin -%>/friends
|
||||
|
|
@ -25,38 +25,40 @@
|
|||
|
||||
</div>
|
||||
<footer style="text-align: center; margin: 0px auto; padding: 0px auto;">
|
||||
<p>
|
||||
This email was sent to you because you have an account at JamKazam. <a
|
||||
href=""
|
||||
style="
|
||||
color: #2c7be5;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid #2c7be5;
|
||||
"
|
||||
>Unsubscribe</a>
|
||||
</p>
|
||||
<div style="text-align: center; margin: 1em 0;">
|
||||
<a href="https://www.facebook.com" target="_blank">
|
||||
<img src="<%= image_url("/email/fb-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="Facebook" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
|
||||
</a>
|
||||
<a href="https://www.instagram.com" target="_blank">
|
||||
<img src="<%= image_url("/email/instagram-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="Instagram" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
<a href="https://www.tiktok.com" target="_blank">
|
||||
<img src="<%= image_url("/email/tiktok-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="TikTok" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
<a href="https://www.youtube.com" target="_blank">
|
||||
<img src="<%= image_url("/email/youtube-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="YouTube" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
<a href="https://www.x.com" target="_blank">
|
||||
<img src=<%= image_url("/email/twitter-x-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="X.com" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
</div>
|
||||
<p>
|
||||
Copyright © 2024 JamKazam, Inc. All rights reserved.
|
||||
</p>
|
||||
</footer>
|
||||
<% if @user && @user.unsubscribe_token -%>
|
||||
<p>
|
||||
<%= I18n.t "mailer_layout.footer.paragraph1" -%> <a href="https://www.jamkazam.com" target="_blank">JamKazam</a>. <a
|
||||
href="https://www.jamkazam.com/unsubscribe/<%= @user.unsubscribe_token %>"
|
||||
style="
|
||||
color: #2c7be5;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid #2c7be5;
|
||||
"
|
||||
><%= I18n.t "mailer_layout.footer.unsubscribe" -%></a>
|
||||
</p>
|
||||
<% end -%>
|
||||
<div style="text-align: center; margin: 1em 0;">
|
||||
<a href="https://www.facebook.com" target="_blank">
|
||||
<img src="<%= image_url("/email/fb-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="Facebook" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
|
||||
</a>
|
||||
<a href="https://www.instagram.com" target="_blank">
|
||||
<img src="<%= image_url("/email/instagram-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="Instagram" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
<a href="https://www.tiktok.com" target="_blank">
|
||||
<img src="<%= image_url("/email/tiktok-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="TikTok" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
<a href="https://www.youtube.com" target="_blank">
|
||||
<img src="<%= image_url("/email/youtube-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="YouTube" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
<a href="https://www.x.com" target="_blank">
|
||||
<img src=<%= image_url("/email/twitter-x-icon.svg", host: APP_CONFIG.action_mailer.assets_host ) -%>" alt="X.com" style="width: 24px; height: 24px; margin: 0 5px;">
|
||||
</a>
|
||||
</div>
|
||||
<p>
|
||||
<%= I18n.t "mailer_layout.footer.copyright" -%>
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ module JamRuby
|
|||
PRIORITY_RECIPIENTS = %w(seth@jamkazam.com david@jamkazam.com peter@jamkazam.com nuwan@jamkazam.com).freeze
|
||||
|
||||
def self.subject
|
||||
"New musicians with good Internet connections to you have joined JamKazam!"
|
||||
I18n.t 'user_mailer.new_musicians_match.subject'
|
||||
end
|
||||
|
||||
def self.send_new_musicians
|
||||
|
|
|
|||
|
|
@ -6,8 +6,22 @@ en:
|
|||
attributes:
|
||||
user:
|
||||
password_digest: "Password"
|
||||
mailer_layout:
|
||||
footer:
|
||||
paragraph1: "This email was sent to you because you have an account at"
|
||||
unsubscribe: "Unsubscribe"
|
||||
copyright: "Copyright © 2024 JamKazam, Inc. All rights reserved."
|
||||
user_mailer:
|
||||
confirm_email:
|
||||
subject: "Please confirm your JamKazam email address"
|
||||
paragraph1: "Thanks for signing up with JamKazam! Please click the button below to confirm your email for use with JamKazam. We do not sell or share our users’ emails. We only use your email to send you information and updates about the JamKazam service."
|
||||
confirm_email: "Confirm Email Address"
|
||||
paragraph2: " If you have received this email but aren’t familiar with JamKazam, someone has registered at our website using your email address, and you can use the unsubscribe link below to stop receiving emails from us."
|
||||
best_wishes: "Best Regards,"
|
||||
signature: "Team JamKazam"
|
||||
|
||||
new_musicians_match:
|
||||
subject: "New musicians with good Internet connections to you have joined JamKazam!"
|
||||
greeting: "Hi"
|
||||
paragraph1: "The following musicians have joined JamKazam within the last week and have low internet latency to you that will support enjoyable sessions. If you'd like to make more musical connections, we encourage you to use the links below to send these new users a welcome message and perhaps arrange a session to play together."
|
||||
latency_to_you: "Latency to You"
|
||||
|
|
|
|||
|
|
@ -6,7 +6,29 @@ en:
|
|||
attributes:
|
||||
user:
|
||||
password_digest: "Password"
|
||||
mailer_layout:
|
||||
footer:
|
||||
paragraph1: "This email was sent to you because you have an account at"
|
||||
unsubscribe: "Unsubscribe"
|
||||
copyright: "Copyright © 2024 JamKazam, Inc. All rights reserved."
|
||||
user_mailer:
|
||||
confirm_email:
|
||||
subject: "Please confirm your JamKazam email address"
|
||||
paragraph1: "Thanks for signing up with JamKazam! Please click the button below to confirm your email for use with JamKazam. We do not sell or share our users’ emails. We only use your email to send you information and updates about the JamKazam service."
|
||||
confirm_email: "Confirm Email Address"
|
||||
paragraph2: " If you have received this email but aren’t familiar with JamKazam, someone has registered at our website using your email address, and you can use the unsubscribe link below to stop receiving emails from us."
|
||||
best_wishes: "Best Regards,"
|
||||
signature: "Team JamKazam"
|
||||
|
||||
new_musicians_match:
|
||||
subject: "New musicians with good Internet connections to you have joined JamKazam!"
|
||||
greeting: "Hola"
|
||||
view_profile: "Ver Perfil"
|
||||
paragraph1: "The following musicians have joined JamKazam within the last week and have low internet latency to you that will support enjoyable sessions. If you'd like to make more musical connections, we encourage you to use the links below to send these new users a welcome message and perhaps arrange a session to play together."
|
||||
latency_to_you: "Latency to You"
|
||||
last_active: "Last Active"
|
||||
ago: "ago"
|
||||
view_profile: "View Profile"
|
||||
send_message: "Send Message"
|
||||
send_friend_request: "Send Friend Request"
|
||||
paragraph2: "To find great musical matches across the entire JamKazam commiunity and make new connections, use the button below to access our musician search feature. This let you filter JamKazammers by latency, instruments, skill level, genre interests, last active day and more."
|
||||
search_musicians: "Search JamKazam Musicians"
|
||||
|
|
|
|||
Loading…
Reference in New Issue