Revision c007f069
Added by Dominic Cleal about 10 years ago
app/helpers/audits_helper.rb | ||
---|---|---|
end
|
||
elsif !main_object? audit
|
||
["#{audit_action_name(audit).humanize} #{id_to_label audit.audited_changes.keys[0], audit.audited_changes.values[0]}
|
||
#{audit_action_name(audit)=="removed" ? "from" : "to"} #{id_to_label audit.audited_changes.keys[1], audit.audited_changes.values[1]}"]
|
||
#{audit_action_name(audit)=="removed" ? "from" : "to"} #{audit.associated_name || id_to_label(audit.audited_changes.keys[1], audit.audited_changes.values[1])}"]
|
||
else
|
||
[]
|
||
end
|
||
... | ... | |
'Puppet Class'
|
||
when 'Parameter'
|
||
"#{audit.associated_type || 'Global'}-#{type_name}"
|
||
when 'LookupKey'
|
||
'Smart Variable'
|
||
when 'LookupValue'
|
||
'Override Value'
|
||
else
|
||
audit.auditable_type
|
||
end
|
Also available in: Unified diff
fixes #1902 - audit changes to lookup keys and values/overrides
(cherry picked from commit 971fee795383d2f7dc757a91ceb46bd693e20a4d)