Mercurial > hg > soundsoftware-site
comparison .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 |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
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 |