From c3422460ce00b05538dcb81c4b6183f190afb6f8 Mon Sep 17 00:00:00 2001 From: huang Date: Mon, 28 Sep 2015 15:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BF=E8=AF=84=E5=A4=B1=E8=B4=A5=E9=82=AE?= =?UTF-8?q?=E4=BB=B6=E5=8F=91=E9=80=81=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/mailer.rb | 5 +++++ app/views/mailer/send_mail_anonymous_comment_close.text.erb | 3 +++ app/views/mailer/send_mail_anonymous_comment_fail.html.erb | 0 app/views/mailer/send_mail_anonymous_comment_fail.text.erb | 0 4 files changed, 8 insertions(+) create mode 100644 app/views/mailer/send_mail_anonymous_comment_fail.html.erb create mode 100644 app/views/mailer/send_mail_anonymous_comment_fail.text.erb 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