This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/app/views/forums/show.atom.builder
2017-12-10 13:15:05 -05:00

20 lines
525 B
Ruby

atom_feed do |feed|
feed.title @forum.name + "'s Latest Threads"
feed.updated Time.now
@threads.limit(10).each do |thread|
unless thread.sticky?
feed.entry thread do |entry|
entry.updated thread.updated_at
entry.author do |a|
a.name thread.author.name
a.uri user_url(thread.author)
end
entry.url forumthread_url(thread)
entry.title thread.title
entry.content render_md(thread.content).html_safe, :type => 'html'
end
end
end
end