diff --git a/app/views/layouts/base_users.html.erb b/app/views/layouts/base_users.html.erb index 5c6f24524..1220a529c 100644 --- a/app/views/layouts/base_users.html.erb +++ b/app/views/layouts/base_users.html.erb @@ -66,7 +66,7 @@ <%= link_to(l(:label_user_edit), my_account_path(@user)) if User.current %> <% end %> - + <% messages_count = @user.messages.count %> <% messages_score = messages_count * 0.05%> @@ -158,9 +158,12 @@ <%= l(:label_user_login) %>:<%= format_time(@user.last_login_on) %> + <% if User.current == @user %> + <%= l(:label_user_mail) %>:<%= mail_to(h(@user.mail), nil, :encode => 'javascript') %> + <% end %> <% unless @user.user_extensions.nil? %> diff --git a/app/views/mailer/journals_for_message_add.html.erb b/app/views/mailer/journals_for_message_add.html.erb index d6c0bc482..bd2a36440 100644 --- a/app/views/mailer/journals_for_message_add.html.erb +++ b/app/views/mailer/journals_for_message_add.html.erb @@ -1,4 +1,4 @@ -尊敬的用户,<%= @user %>(<%= @user.mail%>)给你留言了: +尊敬的用户,<%= @user %>给你留言了:
<%= @message %>

点击链接查看最新回复<%= link_to(@url, @url) %>

diff --git a/app/views/mailer/journals_for_message_add.text.erb b/app/views/mailer/journals_for_message_add.text.erb index ae405d06d..5eb47ef3b 100644 --- a/app/views/mailer/journals_for_message_add.text.erb +++ b/app/views/mailer/journals_for_message_add.text.erb @@ -1,3 +1,3 @@ -尊敬的用户,<%= @user %>(<%= @user.mail%>)给你留言了: +尊敬的用户,<%= @user %>给你留言了: <%= @message %> 点击链接查看最新回复<%= link_to(@url, @url) %> diff --git a/app/views/users/show_old.html.erb b/app/views/users/show_old.html.erb index 9ce6c160f..d2de97b05 100644 --- a/app/views/users/show_old.html.erb +++ b/app/views/users/show_old.html.erb @@ -6,7 +6,7 @@