forked from Trustie/forgeplus
更改:移除操作日志中标记的色值
This commit is contained in:
parent
ce70378fc3
commit
5216e61479
|
@ -73,8 +73,8 @@ class Journal < ApplicationRecord
|
||||||
content += "将附件由<b>#{old_value}</b>更改为<b>#{new_value}</b>"
|
content += "将附件由<b>#{old_value}</b>更改为<b>#{new_value}</b>"
|
||||||
end
|
end
|
||||||
when 'issue_tag'
|
when 'issue_tag'
|
||||||
old_value = IssueTag.where(id: detail.old_value.split(",")).pluck(:name, :color).map{|t| "<span style='color: #{t[1]}'>#{t[0]}</span>"}.join(" ")
|
old_value = IssueTag.where(id: detail.old_value.split(",")).pluck(:name).join("、")
|
||||||
new_value = IssueTag.where(id: detail.value.split(",")).pluck(:name, :color).map{|t| "<span style='color: #{t[1]}'>#{t[0]}</span>"}.join(" ")
|
new_value = IssueTag.where(id: detail.value.split(",")).pluck(:name).join("、")
|
||||||
if old_value.nil? || old_value.blank?
|
if old_value.nil? || old_value.blank?
|
||||||
content += "添加了<b>#{new_value}</b>标记"
|
content += "添加了<b>#{new_value}</b>标记"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue