From: Tom Hughes Date: Wed, 26 Sep 2007 23:01:11 +0000 (+0000) Subject: Provide both HTML and plain text versions of account confirmation and X-Git-Tag: live~8097 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/e5018d8f08c98d00356a13d4e107f718191c331c Provide both HTML and plain text versions of account confirmation and password reset emails to try and avoid problems with link truncation. --- diff --git a/app/views/notifier/lost_password.text.html.rhtml b/app/views/notifier/lost_password.text.html.rhtml new file mode 100644 index 000000000..341240ea8 --- /dev/null +++ b/app/views/notifier/lost_password.text.html.rhtml @@ -0,0 +1,8 @@ +

Hi,

+ +

Someone (possibly you) has asked for the password to be reset on this + email addresses openstreetmap.org account.

+ +

If this is you, please click the link below to reset your password.

+ +

<%= @url %>

diff --git a/app/views/notifier/lost_password.rhtml b/app/views/notifier/lost_password.text.plain.rhtml similarity index 100% rename from app/views/notifier/lost_password.rhtml rename to app/views/notifier/lost_password.text.plain.rhtml diff --git a/app/views/notifier/reset_password.text.html.rhtml b/app/views/notifier/reset_password.text.html.rhtml new file mode 100644 index 000000000..a99ca378e --- /dev/null +++ b/app/views/notifier/reset_password.text.html.rhtml @@ -0,0 +1,3 @@ +

Hi,

+ +

Your password has been reset to <%= @pass %>

diff --git a/app/views/notifier/reset_password.rhtml b/app/views/notifier/reset_password.text.plain.rhtml similarity index 100% rename from app/views/notifier/reset_password.rhtml rename to app/views/notifier/reset_password.text.plain.rhtml diff --git a/app/views/notifier/signup_confirm.text.html.rhtml b/app/views/notifier/signup_confirm.text.html.rhtml new file mode 100644 index 000000000..2272b0152 --- /dev/null +++ b/app/views/notifier/signup_confirm.text.html.rhtml @@ -0,0 +1,8 @@ +

Hi,

+ +

Someone (hopefully you) would like to create an account over at + <%= SERVER_URL %>.

+ +

If this is you, please click the link below to confirm that account.

+ +

<%= @url %>

diff --git a/app/views/notifier/signup_confirm.rhtml b/app/views/notifier/signup_confirm.text.plain.rhtml similarity index 100% rename from app/views/notifier/signup_confirm.rhtml rename to app/views/notifier/signup_confirm.text.plain.rhtml