Sha256: 58fdb31a730dfddf3aa4232ac754d2862c890dd12e6e822c1940553a15e38e47
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
xml.rss("version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/") do xml.channel do xml.title(@elt.subject) xml.link(url_for(:only_path => false, :action => nil, :id => @elt.id)) xml.description @elt.subject+" (parlement)" xml.language "en" xml.language "fr" for item in @elt.children.reverse xml.item do xml.title(item.subject) #xml.category(@elt.subject) xml.pubDate(item.created_on) if url_for(:only_path => false).match(/http:\/\/echarp.dyndns.org/) and @elt.id == 'blog' xml.link(url_for(:only_path => false, :controller => 'perso', :action => 'blog', :id => item.id+'.html')) xml.comments(url_for(:only_path => false, :controller => 'perso', :action => 'blog', :id => item.id+'.html')) else xml.link(url_for(:only_path => false, :action => 'show', :id => item.id)) xml.comments(url_for(:only_path => false, :action => 'show', :id => item.id)) end xml.tag!("dc:creator", item.person.name) if item.person != nil xml.description("<p>"+format(item.body)+"</p>") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
parlement-0.1 | app/views/elt/rss.rxml |
parlement-0.2 | app/views/elt/rss.rxml |
parlement-0.3 | app/views/elt/rss.rxml |
parlement-0.4 | app/views/elt/rss.rxml |
parlement-0.5 | app/views/elt/rss.rxml |