diff --git a/ruby/lib/jam_ruby/app/mailers/mailer_helper.rb b/ruby/lib/jam_ruby/app/mailers/mailer_helper.rb index 4dfbd9870..069a6145e 100644 --- a/ruby/lib/jam_ruby/app/mailers/mailer_helper.rb +++ b/ruby/lib/jam_ruby/app/mailers/mailer_helper.rb @@ -27,6 +27,6 @@ module MailerHelper latency_scores[:unknown][:label] end - lbl + lbl.titleize end end \ 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 index 58824245a..fde67f33a 100644 --- 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 @@ -11,7 +11,7 @@
- <%= I18n.t "mailer_layout.footer.paragraph1" -%> JamKazam. <%= I18n.t "mailer_layout.footer.unsubscribe" -%> -
- <% end -%> -- <%= I18n.t "mailer_layout.footer.copyright" -%> -
+ + <% if @user && @user.unsubscribe_token -%> +
+ <%= I18n.t "mailer_layout.footer.paragraph1" -%> JamKazam.
You can <%= I18n.t "mailer_layout.footer.unsubscribe" -%>
+ to stop receiving emails from us.
+
+ <%= I18n.t "mailer_layout.footer.copyright" -%> +
+