+
+

" alt="JamKazam Logo" />
+
+
+ Hi <%= @user.first_name -%>,
+
+
+ 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.
+
+ <%
+ @musicians_data.each do | data | -%>
+ <%
+ musicians = data[:musicians]
+ latencies = data[:latencies]
+ musicians.each do |musician|
+ latency = latencies.find{|l| l[:user_id] == musician.id }
+ -%>
+
+
+ <%= image_tag musician.photo_url.blank?? "avatar.png" : musician.photo_url, height: '32', width: '32', host: APP_CONFIG.action_mailer.assets_host -%>
+
+
+
<%= musician.first_name %> <%= musician.last_name %>
+
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
+ <% end -%>
+
+
+ <% musician.musician_instruments.each do |mi| -%>
+
+ <%= mi.description %>: <%= @instrument_proficiencies[mi.proficiency_level.to_s.to_sym] %>
+
+ <% end -%>
+
+
+
+ <% end -%>
+ <% end -%>
+
+
+ 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.
+
+
+
+
\ No newline at end of file
diff --git a/ruby/lib/jam_ruby/app/views/jam_ruby/user_mailer/new_musicians_match.text.erb b/ruby/lib/jam_ruby/app/views/jam_ruby/user_mailer/new_musicians_match.text.erb
new file mode 100644
index 000000000..30d6cb449
--- /dev/null
+++ b/ruby/lib/jam_ruby/app/views/jam_ruby/user_mailer/new_musicians_match.text.erb
@@ -0,0 +1,32 @@
+<% if !@user.anonymous? %>
+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.
+
+<%
+ @musicians_data.each do | data | -%>
+ <%
+ musicians = data[:musicians]
+ latencies = data[:latencies]
+ musicians.each do |musician|
+ latency = latencies.find{|l| l[:user_id] == musician.id }
+ -%>
+ <%= musician.first_name %> <%= musician.last_name %>
+ 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
+ <% 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
+
+ <% 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.
+
+ Search JamKazam Musicians: <%= APP_CONFIG.spa_origin -%>/friends
\ No newline at end of file
diff --git a/ruby/lib/jam_ruby/app/views/layouts/user_mailer_beta.html.erb b/ruby/lib/jam_ruby/app/views/layouts/user_mailer_beta.html.erb
new file mode 100644
index 000000000..f226c6b54
--- /dev/null
+++ b/ruby/lib/jam_ruby/app/views/layouts/user_mailer_beta.html.erb
@@ -0,0 +1,38 @@
+
+
+
+