|
|
@ -380,6 +380,22 @@ module IssuesHelper
|
|
|
|
value = content_tag("i", h(value)) if value
|
|
|
|
value = content_tag("i", h(value)) if value
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# 缺陷更新结果在消息中显示样式
|
|
|
|
|
|
|
|
if no_html == "message"
|
|
|
|
|
|
|
|
label = content_tag(:span, label, :class => "issue_update_message")
|
|
|
|
|
|
|
|
old_value = content_tag("span", h(old_value)) if detail.old_value
|
|
|
|
|
|
|
|
old_value = content_tag("del", old_value) if detail.old_value and detail.value.blank?
|
|
|
|
|
|
|
|
if detail.property == 'attachment' && !value.blank? && atta = Attachment.find_by_id(detail.prop_key)
|
|
|
|
|
|
|
|
# Link to the attachment if it has not been removed
|
|
|
|
|
|
|
|
if options[:token].nil?
|
|
|
|
|
|
|
|
value = atta.filename
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
value = atta.filename
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
value = content_tag(:span, h(value), :class => "issue_update_message_value") if value
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if detail.property == 'attr' && detail.prop_key == 'description'
|
|
|
|
if detail.property == 'attr' && detail.prop_key == 'description'
|
|
|
|
s = l(:text_journal_changed_no_detail, :label => label)
|
|
|
|
s = l(:text_journal_changed_no_detail, :label => label)
|
|
|
|