Sha256: ce5654bc30ea57150ba550b63d75a904fd74e07765fd505b211509d7f7f3964f

Contents?: true

Size: 701 Bytes

Versions: 11

Compression:

Stored size: 701 Bytes

Contents

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

  xml.title "#{@site_title} : #{@topic.name}"
  xml.description "#{@posts.length} #{t('forum_extension.posts')}, #{t('forum_extension.most_recently')} #{t('forum_extension.from_reader', :name => @posts.last.reader.name)} #{t('forum_extension.on_date', :date => friendly_date(@posts.last.created_at))}"
  xml.link topic_url(@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

11 entries across 11 versions & 1 rubygems

Version Path
radiant-forum-extension-3.0.7 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.6 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.5 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.4 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.3 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.2 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.1 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.0 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.0.rc6 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.0.rc4 app/views/topics/show.rss.builder
radiant-forum-extension-3.0.0.rc3 app/views/topics/show.rss.builder