To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / journals / index.builder @ 912:5e80956cc792
History | View | Annotate | Download (1.45 KB)
| 1 | 909:cbb26bc654de | Chris | 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.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) |
||
| 8 | xml.author { xml.name "#{Setting.app_title}" }
|
||
| 9 | @journals.each do |change| |
||
| 10 | issue = change.issue |
||
| 11 | xml.entry do |
||
| 12 | xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}"
|
||
| 13 | xml.link "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false) |
||
| 14 | xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :journal_id => change, :only_path => false) |
||
| 15 | xml.updated change.created_on.xmlschema |
||
| 16 | xml.author do |
||
| 17 | xml.name change.user.name |
||
| 18 | xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail |
||
| 19 | end |
||
| 20 | xml.content "type" => "html" do |
||
| 21 | xml.text! '<ul>' |
||
| 22 | change.details.each do |detail| |
||
| 23 | xml.text! '<li>' + show_detail(detail, false) + '</li>' |
||
| 24 | end |
||
| 25 | xml.text! '</ul>' |
||
| 26 | xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? |
||
| 27 | end |
||
| 28 | end |
||
| 29 | end |
||
| 30 | end |