Sha256: 3acc3189c36b69000892d81e19753d58de7ae808c2393588bf41f7f527b16665

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

xml.channel do
  xml.atom :link, nil, {
    :href => forum_topic_url(@topic.forum, @topic, :format => 'rss'),
    :rel => 'self', :type => 'application/rss+xml'
  }

  xml.title "#{@site_title} : #{@topic.name}"
  xml.description "#{@posts.length} posts, most recently from #{@posts.last.reader.name} on #{@posts.last.created_at.to_s(:informal)}"
  xml.link forum_topic_url(@topic.forum, @topic)
  xml.language "en-us"
  xml.ttl "60"

  render :partial => "posts/post", :object => @topic.posts.first, :locals => {:xm => xml}
  render :partial => "posts/post", :collection => @posts, :locals => {:xm => xml}
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-forum-extension-2.0.6 app/views/topics/show.rss.builder
radiant-forum-extension-2.0.5 app/views/topics/show.rss.builder
radiant-forum-extension-2.0.4 app/views/topics/show.rss.builder
radiant-forum-extension-2.0.3 app/views/topics/show.rss.builder