fix email template locations

This commit is contained in:
Kyle Drake 2023-08-08 15:45:42 -05:00
parent 72b9d19e8a
commit 19050fea82
4 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ post '/create' do
unless education_whitelisted?
@site.send_email(
subject: "[Neocities] Welcome to Neocities!",
body: Tilt.new('./views/templates/email_welcome.erb', pretty: true).render(self)
body: Tilt.new('./views/templates/email/welcome.erb', pretty: true).render(self)
)
send_confirmation_email @site

View file

@ -74,7 +74,7 @@ post '/supporter/update' do
site.send_email(
subject: "[Neocities] You've become a supporter!",
body: Tilt.new('./views/templates/email_subscription.erb', pretty: true).render(
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],