Mercurial > hg > soundsoftware-site
annotate .svn/pristine/aa/aa0d914bc0bade2d9ad83777b14a49922346ef4d.svn-base @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | |
children |
rev | line source |
---|---|
Chris@1517 | 1 xml.instruct! |
Chris@1517 | 2 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do |
Chris@1517 | 3 xml.title @title |
Chris@1517 | 4 xml.link "rel" => "self", "href" => url_for(:format => 'atom', :key => User.current.rss_key, :only_path => false) |
Chris@1517 | 5 xml.link "rel" => "alternate", "href" => home_url(:only_path => false) |
Chris@1517 | 6 xml.id url_for(:controller => 'welcome', :only_path => false) |
Chris@1517 | 7 xml.icon favicon_url |
Chris@1517 | 8 xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) |
Chris@1517 | 9 xml.author { xml.name "#{Setting.app_title}" } |
Chris@1517 | 10 @journals.each do |change| |
Chris@1517 | 11 issue = change.issue |
Chris@1517 | 12 xml.entry do |
Chris@1517 | 13 xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}" |
Chris@1517 | 14 xml.link "rel" => "alternate", "href" => url_for(:controller => 'issues' , :action => 'show', :id => issue, :only_path => false) |
Chris@1517 | 15 xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :journal_id => change, :only_path => false) |
Chris@1517 | 16 xml.updated change.created_on.xmlschema |
Chris@1517 | 17 xml.author do |
Chris@1517 | 18 xml.name change.user.name |
Chris@1517 | 19 xml.email(change.user.mail) if change.user.is_a?(User) && !change.user.mail.blank? && !change.user.pref.hide_mail |
Chris@1517 | 20 end |
Chris@1517 | 21 xml.content "type" => "html" do |
Chris@1517 | 22 xml.text! '<ul>' |
Chris@1517 | 23 details_to_strings(change.details, false).each do |string| |
Chris@1517 | 24 xml.text! '<li>' + string + '</li>' |
Chris@1517 | 25 end |
Chris@1517 | 26 xml.text! '</ul>' |
Chris@1517 | 27 xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank? |
Chris@1517 | 28 end |
Chris@1517 | 29 end |
Chris@1517 | 30 end |
Chris@1517 | 31 end |