diff --git a/app/models/mailer.rb b/app/models/mailer.rb index c92160b99..1b510b54a 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -83,6 +83,11 @@ class Mailer < ActionMailer::Base :subject => @subject end + # 匿评失败给老师发送邮件通知 + def send_mail_anonymous_comment_fail + + end + # author: alan # 邀请未注册用户加入项目 # 功能: 在加入项目的同时自动注册用户 diff --git a/app/views/mailer/send_mail_anonymous_comment_close.text.erb b/app/views/mailer/send_mail_anonymous_comment_close.text.erb index e69de29bb..8ba50ff53 100644 --- a/app/views/mailer/send_mail_anonymous_comment_close.text.erb +++ b/app/views/mailer/send_mail_anonymous_comment_close.text.erb @@ -0,0 +1,3 @@ +<%= l(:mail_issue_content)%> +<%=link_to @author, user_url(@author) %> +<%=link_to @anonymous_comment_close_name, @anonymous_comment_close_url%> diff --git a/app/views/mailer/send_mail_anonymous_comment_fail.html.erb b/app/views/mailer/send_mail_anonymous_comment_fail.html.erb new file mode 100644 index 000000000..e69de29bb diff --git a/app/views/mailer/send_mail_anonymous_comment_fail.text.erb b/app/views/mailer/send_mail_anonymous_comment_fail.text.erb new file mode 100644 index 000000000..e69de29bb