From 3f67a37a09883e974f1671b997283eaf3329aad2 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Fri, 13 Mar 2015 11:38:26 -0500 Subject: [PATCH] Clean up supporter upgrade email, closes #80 --- app/plan.rb | 8 +++++++- views/templates/email_subscription.erb | 10 ++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/app/plan.rb b/app/plan.rb index 68368870..ee225d81 100644 --- a/app/plan.rb +++ b/app/plan.rb @@ -76,7 +76,13 @@ post '/plan/update' do else site.send_email( subject: "[Neocities] You've become a supporter!", - body: Tilt.new('./views/templates/email_subscription.erb', pretty: true).render(self, plan_name: Site::PLAN_FEATURES[params[:plan_type].to_sym][:name], plan_space: Site::PLAN_FEATURES[params[:plan_type].to_sym][:space].to_space_pretty) + body: Tilt.new('./views/templates/email_subscription.erb', pretty: true).render( + self, { + username: site.username, + plan_name: Site::PLAN_FEATURES[params[:plan_type].to_sym][:name], + plan_space: Site::PLAN_FEATURES[params[:plan_type].to_sym][:space].to_space_pretty, + plan_bw: Site::PLAN_FEATURES[params[:plan_type].to_sym][:bandwidth].to_space_pretty + }) ) end end diff --git a/views/templates/email_subscription.erb b/views/templates/email_subscription.erb index 26524ece..c3021633 100644 --- a/views/templates/email_subscription.erb +++ b/views/templates/email_subscription.erb @@ -1,11 +1,9 @@ -Hi there! +Hi <%= username %>, -We just wanted to email you to confirm your supporter upgrade! You are on the <%= plan_name %> support tier. You now have <%= plan_space %> of space (and we're likely to upgrade this even more soon). We're looking forward to seeing the awesome things you will do with it. +We're writing to confirm your upgrade to the <%= plan_name %> Plan. You now have <%= plan_space %> of space, <%= plan_bw %> of bandwidth, multiple site creation, and a lot of other great features. We look forward to seeing the awesome things you'll do with it! -Thank you very, very much for supporting Neocities. It means a lot to us. It also helps us keep the free tier for others, so your support helps everyone. We'll try our hardest to keep improving the site and stick to our core values (NO MARKETING OR ADVERTISING, EVER). +Thank you very much for supporting Neocities. It allows us to continue offering our free plan to everyone who wants one and helps fund further development. If you have any questions or comments, or just want to say hi, feel free to contact us at https://neocities.org/contact. You can also reach us on Twitter at @neocitiesweb. -From Penelope (the Neocities' cat), the Neocities Team, and on behalf of all our sites, our very best wishes for you (and your awesome web site). - -- The Neocities Team \ No newline at end of file +— The Neocities Team