rosa-build/app/views/advisories/_advisories.json.jbuilder

9 lines
351 B
Plaintext
Raw Permalink Normal View History

json.array!(advisories) do |json, a|
json.id a.advisory_id
json.advisory_id a.advisory_id
json.description simple_format(a.description)
2014-01-21 04:51:49 +00:00
json.popover_desc truncate(a.description, length: 500);
json.references a.references.split("\n").map{|ref| construct_ref_link(ref)}.join('<br />')
json.update_type a.update_type
end