summaryrefslogtreecommitdiff
path: root/app/views/forums/show.atom.builder
blob: f4846557f133b661a1d4482c27cf759f8c04213a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
atom_feed do |feed|
  feed.title "Latest threads in " + @forum.name
  feed.updated Time.now

  @threads.limit(100).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