Sha256: 2f34396800452f30cdf0753c5ce8ea06ce335af0794221cc74a73b78ae4d7ac0

Contents?: true

Size: 677 Bytes

Versions: 8

Compression:

Stored size: 677 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} #{t('posts')}, #{t('most_recently')} #{t('from_reader', :name => @posts.last.reader.name)} #{t('on_date', :date => friendly_date(@posts.last.created_at))}"
  xml.link forum_topic_url(@topic.forum, @topic)
  xml.language I18n.locale.to_s
  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

8 entries across 8 versions & 1 rubygems

Version Path
radiant-forum-extension-2.1.6 app/views/topics/show.rss.builder
radiant-forum-extension-2.1.4 app/views/topics/show.rss.builder
radiant-forum-extension-2.1.3 app/views/topics/show.rss.builder
radiant-forum-extension-2.1.2 app/views/topics/show.rss.builder
radiant-forum-extension-2.1.1 app/views/topics/show.rss.builder
radiant-forum-extension-2.0.9 app/views/topics/show.rss.builder
radiant-forum-extension-2.0.8 app/views/topics/show.rss.builder
radiant-forum-extension-2.0.7 app/views/topics/show.rss.builder