rosa-build/app/views/advisories/index.atom.builder

15 lines
482 B
Plaintext
Raw Normal View History

atom_feed do |feed|
feed.title(t("layout.advisories.atom_title"))
feed.updated(@advisories.first.created_at) if @advisories.length > 0
@advisories.each do |advisory|
2014-01-21 04:51:49 +00:00
feed.entry(advisory, url: advisory_url(advisory)) do |entry|
content = raw(render(inline: true, partial: 'feed_partial', locals: { advisory: advisory }))
entry.title("#{t("activerecord.models.advisory")} #{advisory.advisory_id}")
2014-01-21 04:51:49 +00:00
entry.content(content, type: 'html')
end
end
end