mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
Clean up supporter upgrade email, closes #80
This commit is contained in:
parent
d085a99ddc
commit
3f67a37a09
2 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue