Browse Source

Mails more human-friendly

Maarten van den Berg 7 years ago
parent
commit
54f7a3a89a

+ 1 - 1
app/views/authentication_mailer/password_confirm_email.text.erb

4
 
4
 
5
 <%= confirm_url(token: @token.token) %>
5
 <%= confirm_url(token: @token.token) %>
6
 
6
 
7
-<%= t 'authentication.emails.link_expires', expires: @token.expires %>
7
+<%= t 'authentication.emails.link_expires', expires: l(@token.expires, :long) %>
8
 
8
 
9
 <%= t 'authentication.emails.ending' %>
9
 <%= t 'authentication.emails.ending' %>

+ 1 - 1
app/views/authentication_mailer/password_reset_email.text.erb

4
 
4
 
5
 <%= reset_password_url(token: @token.token) %>
5
 <%= reset_password_url(token: @token.token) %>
6
 
6
 
7
-<%= t 'authentication.emails.link_expires', expires: @token.expires %>
7
+<%= t 'authentication.emails.link_expires', expires: l(@token.expires, :long) %>
8
 <%= t 'authentication.emails.forgot.ignore_if_not_you' %>
8
 <%= t 'authentication.emails.forgot.ignore_if_not_you' %>
9
 
9
 
10
 <%= t 'authentication.emails.ending' %>
10
 <%= t 'authentication.emails.ending' %>

+ 1 - 0
config/locales/authentication/nl.yml

37
         click_this: "Bevestig je account voor Aardbei door te klikken op de volgende link."
37
         click_this: "Bevestig je account voor Aardbei door te klikken op de volgende link."
38
 
38
 
39
       forgot:
39
       forgot:
40
+        subject: "Aardbei-wachtwoord opnieuw instellen"
40
         blurb: "Jij (of iemand die doet alsof hij jou is) heeft een wachtwoordwijziging aangevraagd. Open de volgende link als je dit wilt:"
41
         blurb: "Jij (of iemand die doet alsof hij jou is) heeft een wachtwoordwijziging aangevraagd. Open de volgende link als je dit wilt:"
41
         ignore_if_not_you: "Als jij dit niet hebt aangevraagd kan je dit bericht negeren, en is je oude wachtwoord onveranderd."
42
         ignore_if_not_you: "Als jij dit niet hebt aangevraagd kan je dit bericht negeren, en is je oude wachtwoord onveranderd."