Procházet zdrojové kódy

Mails more human-friendly

Maarten van den Berg %!s(int64=7) %!d(string=před) roky
rodič
revize
54f7a3a89a

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

@@ -4,6 +4,6 @@
4 4
 
5 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 9
 <%= t 'authentication.emails.ending' %>

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

@@ -4,7 +4,7 @@
4 4
 
5 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 8
 <%= t 'authentication.emails.forgot.ignore_if_not_you' %>
9 9
 
10 10
 <%= t 'authentication.emails.ending' %>

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

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