annotate .svn/pristine/42/42065d6686eb12e9679c9132fc4c1d7b2537270b.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

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