diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index f1525522e..4b5a8c064 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -220,6 +220,7 @@ class AccountController < ApplicationController end def email_valid + end private @@ -351,7 +352,7 @@ class AccountController < ApplicationController UserStatus.create(:user_id => user.id, :changsets_count => 0, :watchers_count => 0) Mailer.register(token).deliver flash[:notice] = l(:notice_account_register_done) - render action: 'email_valid' + render action: 'email_valid', locals: {:mail => user.mail} else yield if block_given? end diff --git a/app/views/account/email_valid.html.erb b/app/views/account/email_valid.html.erb index 0eeb923ed..ce47877bd 100644 --- a/app/views/account/email_valid.html.erb +++ b/app/views/account/email_valid.html.erb @@ -1,78 +1,53 @@ + 注册帐号 - + -<% email = params[:mail] %> -
-

邮箱激活

-
-
-

请在24小时内点击邮件中的链接继续完成注册

-
- 邮件已发送到邮箱 - alanlong9278@126.com -
- - <% mail = "mail." + mail.split('@')[1] %> - 立即查收邮件 - - - 没收到邮件? +<% email = @user.mail.split("@")[1] %> + +
+ +

+ 邮箱激活

+ +
+
+
+

请在24小时内点击邮件中的链接继续完成注册

+
+ 邮件已发送到邮箱 + <%= @user.mail %> +
+

+ 立即查收邮件

+ + + 没收到邮件? -
-
- 请先检查是否在垃圾邮件中 - 如果还未收到, - 重新发送邮件 - +
+ + 请先检查是否在垃圾邮件中 + +
-
-
+
+
+
+ + \ No newline at end of file diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index b95959cca..3118c10dd 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -68,6 +68,39 @@

+

+ <%= l(:label_identity) %> * + + + + <% end %> + + +