annotate app/views/journals/.svn/text-base/index.rxml.svn-base @ 14:1d32c0a0efbf

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