BId已取消留言功能
This commit is contained in:
parent
cd631f8fdc
commit
1a3a23b0ed
|
@ -199,8 +199,8 @@ class Mailer < ActionMailer::Base
|
||||||
@title = "#@user #{t(:label_leave_your_message, :locale => 'zh')}"
|
@title = "#@user #{t(:label_leave_your_message, :locale => 'zh')}"
|
||||||
@issue_author_url = url_for(user_activities_url(@user))
|
@issue_author_url = url_for(user_activities_url(@user))
|
||||||
@url = case journals_for_message.jour.class.to_s.to_sym # 判断留言的对象所属类型
|
@url = case journals_for_message.jour.class.to_s.to_sym # 判断留言的对象所属类型
|
||||||
when :Bid
|
# when :Bid
|
||||||
course_for_bid_url(journals_for_message.jour, anchor: "word_li_#{journals_for_message.id}")
|
# course_for_bid_url(journals_for_message.jour, anchor: "word_li_#{journals_for_message.id}")
|
||||||
when :Project
|
when :Project
|
||||||
return -1 if journals_for_message.jour.project_type == Project::ProjectType_project
|
return -1 if journals_for_message.jour.project_type == Project::ProjectType_project
|
||||||
project_feedback_url(journals_for_message.jour, anchor: "word_li_#{journals_for_message.id}")
|
project_feedback_url(journals_for_message.jour, anchor: "word_li_#{journals_for_message.id}")
|
||||||
|
@ -236,12 +236,12 @@ class Mailer < ActionMailer::Base
|
||||||
mail :to => @recipients,
|
mail :to => @recipients,
|
||||||
:subject => "#{l(:label_your_course)}#{journals_for_message.jour.name}#{l(:label_have_message)} ",
|
:subject => "#{l(:label_your_course)}#{journals_for_message.jour.name}#{l(:label_have_message)} ",
|
||||||
:filter => true
|
:filter => true
|
||||||
elsif journals_for_message.jour.class.to_s.to_sym == :Bid
|
# elsif journals_for_message.jour.class.to_s.to_sym == :Bid
|
||||||
if !journals_for_message.jour.author.notify_about? journals_for_message
|
# if !journals_for_message.jour.author.notify_about? journals_for_message
|
||||||
return -1
|
# return -1
|
||||||
end
|
# end
|
||||||
|
#
|
||||||
mail :to => recipients, :subject => @title,:filter => true
|
# mail :to => recipients, :subject => @title,:filter => true
|
||||||
elsif journals_for_message.jour.class.to_s.to_sym == :Contest
|
elsif journals_for_message.jour.class.to_s.to_sym == :Contest
|
||||||
if !journals_for_message.jour.author.notify_about? journals_for_message
|
if !journals_for_message.jour.author.notify_about? journals_for_message
|
||||||
return -1
|
return -1
|
||||||
|
|
Loading…
Reference in New Issue