summaryrefslogtreecommitdiffstats
path: root/app/views/feeds/history.rxml
blob: b7e5a35095c79e0b910eb3b6152666a7904f44da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
xml.instruct!
xml.rss "version" => "2.0", "xmlns:dc" => "http://purl.org/dc/elements/1.1/" do
  xml.channel do
    xml.title @title
    xml.link url_for(:controller => 'welcome', :only_path => false)
    xml.pubDate CGI.rfc1123_date(@journals.first ? @journals.first.created_on : Time.now)
    xml.description l(:label_reported_issues)
    @journals.each do |journal|
      issue = journal.issue
      xml.item do
        xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}"
        url = url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false)
        xml.link url
        xml.description do
          xml.text! h(journal.notes)
          xml.text! "<ul>"
          journal.details.each do |detail|
            xml.text! "<li>" + show_detail(detail, false) + "</li>"
          end
          xml.text! "</ul>"
        end
        xml.pubDate CGI.rfc1123_date(journal.created_on)
        xml.guid url
        xml.author h(journal.user.name)
      end
    end
  end
end