To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / journals / index.builder @ 1531:ae8145b28b2b

History | View | Annotate | Download (1.48 KB)

1
xml.instruct!
2
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
3
  xml.title   @title
4
  xml.link    "rel" => "self", "href" => url_for(:format => 'atom', :key => User.current.rss_key, :only_path => false)
5
  xml.link    "rel" => "alternate", "href" => home_url(:only_path => false)
6
  xml.id      url_for(:controller => 'welcome', :only_path => false)
7
  xml.icon    favicon_url
8
  xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema)
9
  xml.author  { xml.name "#{Setting.app_title}" }
10
  @journals.each do |change|
11
    issue = change.issue
12
    xml.entry do
13
      xml.title   "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}"
14
      xml.link    "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false)
15
      xml.id      url_for(:controller => 'issues' , :action => 'show', :id => issue, :journal_id => change, :only_path => false)
16
      xml.updated change.created_on.xmlschema
17
      xml.author do
18
        xml.name change.user.name
19
        xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail
20
      end
21
      xml.content "type" => "html" do
22
        xml.text! '<ul>'
23
        details_to_strings(change.details, false).each do |string|
24
          xml.text! '<li>' + string + '</li>'
25
        end
26
        xml.text! '</ul>'
27
        xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank?
28
      end
29
    end
30
  end
31
end