Sha256: f69113326b969c10112674f3f187553202dfb32010c88aa6d1a90db2c5c8a1bd
Contents?: true
Size: 781 Bytes
Versions: 2
Compression:
Stored size: 781 Bytes
Contents
xml.feed('version' => '0.3', 'xmlns' => 'http://purl.org/atom/ns#') do xml.title @title xml.link 'rel' => 'alternate', 'type' => 'text/html', 'href' => "#{@request.protocol}#{@request.host_with_port}#{@app_config['main']['app_base']}" xml.modified @posts.first.updated_at.xmlschema if @posts.first @posts.each do |p| xml.entry do xml.title p.subject xml.link 'rel' => 'alternate', 'type' => 'text/html', 'href' => "#{@request.protocol}#{@request.host_with_port}/user/#{@user ? @user.name : p.user.username}/#{p.slug}" xml.author { xml.name @user ? @user.name : p.user.name } xml.issued p.created_at.xmlschema xml.modified p.updated_at.xmlschema xml.content({'type' => 'text/html', 'mode' => 'escaped'}, p.rendered) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
EliteJournal-1.9.480 | app/views/atom/feed.rxml |
EliteJournal-1.9.492 | app/views/atom/feed.rxml |