forked from Trustie/forgeplus
新增:后台管理论坛审核
This commit is contained in:
parent
1a855bc11e
commit
2f6355fcf2
|
|
@ -71,7 +71,7 @@ class UserAction < ApplicationRecord
|
|||
else
|
||||
return "上传附件地址:<a href=\"#{Rails.application.config_for(:configuration)['platform_url']}/attachments/#{attachment.id}\">#{attachment.title}</a>"
|
||||
end
|
||||
when "MemoPassed" then "<a href=\"#{Rails.application.config_for(:configuration)['platform_url']}/forumsDetail/#{memo.id}\">#{memo&.subject}</a>"
|
||||
when "MemoPassed" then "<a href=\"#{Rails.application.config_for(:configuration)['platform_url']}/forumsDetail/#{memo&.id}\">#{memo&.subject}</a>"
|
||||
else "--"
|
||||
end
|
||||
end
|
||||
|
|
@ -122,7 +122,7 @@ class UserAction < ApplicationRecord
|
|||
end
|
||||
|
||||
def memo
|
||||
memo = if action_type == "MemoPassed" && data_bank.present?
|
||||
memo = if action_type == "MemoPassed"
|
||||
Memo.find_by(id: self.action_id)
|
||||
else
|
||||
nil
|
||||
|
|
|
|||
Loading…
Reference in New Issue