|
|
|
@ -113,7 +113,7 @@ class Tiding < ActiveRecord::Base
|
|
|
|
|
shixun_name = Subject.find(self.parent_container_id).name
|
|
|
|
|
self.tiding_type == "System" ? ("你提交的实训课程发布申请:" + shixun_name + ",审核" + (self.status == 1 ? '已通过':('未通过' + " " + '原因:' + container.try(:reason).to_s))) : ("申请发布实训课程:"+ shixun_name)
|
|
|
|
|
when "TrialAuthorization"
|
|
|
|
|
self.tiding_type == "System" ? ("你提交的试用授权申请:审核" + (self.status == 1 ? '已通过':('未通过' + " " + '原因:' + container.try(:reason).to_s))) : ("提交了试用授权申请")
|
|
|
|
|
self.tiding_type == "System" ? ("你提交的试用授权申请:审核" + (self.status == 1 ? '已通过':('未通过' + " " + '原因:' + container.try(:reason).to_s + ';' + container.try(:reject_description).to_s))) : ("提交了试用授权申请")
|
|
|
|
|
end
|
|
|
|
|
when "Course", "Shixun","Subject"
|
|
|
|
|
name = self.container_type == "Course" ? "课堂" : (self.container_type == "Shixun" ? "实训" :"实训课程")
|
|
|
|
|