From 9e0bd45e484f87c32b42009cdb2dad7771efe840 Mon Sep 17 00:00:00 2001 From: DualFroz Date: Fri, 4 Sep 2026 19:47:23 +0200 Subject: [PATCH] feat(notification): add confirmation_instructions and new_post --- .../notification/confirmation_instructions.html.erb | 4 ++++ .../notification/confirmation_instructions.text.erb | 7 +++++++ .../blog/app/views/mailers/notification/new_post.html.erb | 3 +++ .../blog/app/views/mailers/notification/new_post.text.erb | 7 +++++++ .../app/views/mailers/notification/password_reset.html.erb | 4 ++++ .../app/views/mailers/notification/password_reset.text.erb | 7 +++++++ .../blog/app/views/mailers/notification/welcome.html.erb | 3 +++ .../blog/app/views/mailers/notification/welcome.text.erb | 5 +++++ 8 files changed, 40 insertions(+) create mode 100644 examples/blog/app/views/mailers/notification/confirmation_instructions.html.erb create mode 100644 examples/blog/app/views/mailers/notification/confirmation_instructions.text.erb create mode 100644 examples/blog/app/views/mailers/notification/new_post.html.erb create mode 100644 examples/blog/app/views/mailers/notification/new_post.text.erb create mode 100644 examples/blog/app/views/mailers/notification/password_reset.html.erb create mode 100644 examples/blog/app/views/mailers/notification/password_reset.text.erb create mode 100644 examples/blog/app/views/mailers/notification/welcome.html.erb create mode 100644 examples/blog/app/views/mailers/notification/welcome.text.erb diff --git a/examples/blog/app/views/mailers/notification/confirmation_instructions.html.erb b/examples/blog/app/views/mailers/notification/confirmation_instructions.html.erb new file mode 100644 index 0000000..e7ba750 --- /dev/null +++ b/examples/blog/app/views/mailers/notification/confirmation_instructions.html.erb @@ -0,0 +1,4 @@ +

Confirm your email address

+

Hi <%= user.email %>, welcome to Prism Blog. Please confirm this address is yours.

+

Confirm my email

+

If you didn't sign up, you can ignore this email.

diff --git a/examples/blog/app/views/mailers/notification/confirmation_instructions.text.erb b/examples/blog/app/views/mailers/notification/confirmation_instructions.text.erb new file mode 100644 index 0000000..7351c58 --- /dev/null +++ b/examples/blog/app/views/mailers/notification/confirmation_instructions.text.erb @@ -0,0 +1,7 @@ +Confirm your email address + +Hi <%= user.email %>, welcome to Prism Blog. Please confirm this address is yours. + +Confirm my email: <%= confirmation_url %> + +If you didn't sign up, you can ignore this email. diff --git a/examples/blog/app/views/mailers/notification/new_post.html.erb b/examples/blog/app/views/mailers/notification/new_post.html.erb new file mode 100644 index 0000000..9a82441 --- /dev/null +++ b/examples/blog/app/views/mailers/notification/new_post.html.erb @@ -0,0 +1,3 @@ +

<%= post.title %>

+

<%= post.body %>

+

Read it on Prism Blog

diff --git a/examples/blog/app/views/mailers/notification/new_post.text.erb b/examples/blog/app/views/mailers/notification/new_post.text.erb new file mode 100644 index 0000000..07dfe19 --- /dev/null +++ b/examples/blog/app/views/mailers/notification/new_post.text.erb @@ -0,0 +1,7 @@ +A new post was published on Prism Blog: + +<%= post.title %> + +<%= post.body %> + +Read it at <%= post_url %> diff --git a/examples/blog/app/views/mailers/notification/password_reset.html.erb b/examples/blog/app/views/mailers/notification/password_reset.html.erb new file mode 100644 index 0000000..5df72df --- /dev/null +++ b/examples/blog/app/views/mailers/notification/password_reset.html.erb @@ -0,0 +1,4 @@ +

Reset your password

+

Hi <%= user.email %>, someone (hopefully you) asked to reset your Prism Blog password.

+

Choose a new password

+

This link expires in 15 minutes. If you didn't request this, you can ignore this email.

diff --git a/examples/blog/app/views/mailers/notification/password_reset.text.erb b/examples/blog/app/views/mailers/notification/password_reset.text.erb new file mode 100644 index 0000000..4653bde --- /dev/null +++ b/examples/blog/app/views/mailers/notification/password_reset.text.erb @@ -0,0 +1,7 @@ +Reset your password + +Hi <%= user.email %>, someone (hopefully you) asked to reset your Prism Blog password. + +Choose a new password: <%= reset_url %> + +This link expires in 15 minutes. If you didn't request this, you can ignore this email. diff --git a/examples/blog/app/views/mailers/notification/welcome.html.erb b/examples/blog/app/views/mailers/notification/welcome.html.erb new file mode 100644 index 0000000..91c6772 --- /dev/null +++ b/examples/blog/app/views/mailers/notification/welcome.html.erb @@ -0,0 +1,3 @@ +

Welcome to Prism Blog

+

Hi <%= user.email %>, your account is ready.

+

Start reading

diff --git a/examples/blog/app/views/mailers/notification/welcome.text.erb b/examples/blog/app/views/mailers/notification/welcome.text.erb new file mode 100644 index 0000000..45a8f0f --- /dev/null +++ b/examples/blog/app/views/mailers/notification/welcome.text.erb @@ -0,0 +1,5 @@ +Welcome to Prism Blog + +Hi <%= user.email %>, your account is ready. + +Start reading at /posts