Chris@909: xml.instruct! Chris@909: xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do Chris@909: xml.title @title Chris@909: xml.link "rel" => "self", "href" => url_for(:format => 'atom', :key => User.current.rss_key, :only_path => false) Chris@909: xml.link "rel" => "alternate", "href" => home_url(:only_path => false) Chris@909: xml.id url_for(:controller => 'welcome', :only_path => false) Chris@1517: xml.icon favicon_url Chris@909: xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) Chris@909: xml.author { xml.name "#{Setting.app_title}" } Chris@909: @journals.each do |change| Chris@909: issue = change.issue Chris@909: xml.entry do Chris@909: xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}" Chris@909: xml.link "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false) Chris@909: xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :journal_id => change, :only_path => false) Chris@909: xml.updated change.created_on.xmlschema Chris@909: xml.author do Chris@909: xml.name change.user.name Chris@909: xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail Chris@909: end Chris@909: xml.content "type" => "html" do Chris@909: xml.text! '' Chris@909: xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? Chris@909: end Chris@909: end Chris@909: end Chris@909: end