beast rev 2066
[beast-modified.git] / app / views / topics / show.rss.builder
blobcbdc212d60235dc897c60ebdca4b58f9e8bbc221
1 xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8"
3 xml.rss "version" => "2.0",
4   'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/",
5   'xmlns:atom'       => "http://www.w3.org/2005/Atom" do
6   xml.channel do
7     xml.title "Recent Posts in '{topic}' | Beast"[:recent_posts_in_topic,@topic.title]
8     xml.link topic_url(@forum, @topic)
9     xml.language "en-us"[:feed_language]
10     xml.ttl "60"
11     xml.tag! "atom:link", :rel => 'search', :type => 'application/opensearchdescription+xml', :href => "http://#{request.host_with_port+request.relative_url_root}/open_search.xml"
12     xml.description @topic.body
14     render :partial => "layouts/post", :collection => @posts, :locals => {:xm => xml}
15   end
16 end