kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.4 KiB
32 lines
1.4 KiB
17 years ago
|
xml.instruct!
|
||
|
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
||
16 years ago
|
xml.title truncate_single_line(@title, :length => 100)
|
||
16 years ago
|
xml.link "rel" => "self", "href" => url_for(params.merge(:only_path => false))
|
||
|
xml.link "rel" => "alternate", "href" => url_for(params.merge(:only_path => false, :format => nil, :key => nil))
|
||
17 years ago
|
xml.id url_for(:controller => 'welcome', :only_path => false)
|
||
|
xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)
|
||
|
xml.author { xml.name "#{Setting.app_title}" }
|
||
16 years ago
|
xml.generator(:uri => Redmine::Info.url) { xml.text! Redmine::Info.app_name; }
|
||
17 years ago
|
@items.each do |item|
|
||
|
xml.entry do
|
||
17 years ago
|
url = url_for(item.event_url(:only_path => false))
|
||
17 years ago
|
if @project
|
||
16 years ago
|
xml.title truncate_single_line(item.event_title, :length => 100)
|
||
17 years ago
|
else
|
||
16 years ago
|
xml.title truncate_single_line("#{item.project} - #{item.event_title}", :length => 100)
|
||
17 years ago
|
end
|
||
17 years ago
|
xml.link "rel" => "alternate", "href" => url
|
||
|
xml.id url
|
||
17 years ago
|
xml.updated item.event_datetime.xmlschema
|
||
17 years ago
|
author = item.event_author if item.respond_to?(:event_author)
|
||
17 years ago
|
xml.author do
|
||
17 years ago
|
xml.name(author)
|
||
16 years ago
|
xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail
|
||
17 years ago
|
end if author
|
||
|
xml.content "type" => "html" do
|
||
16 years ago
|
xml.text! textilizable(item, :event_description, :only_path => false)
|
||
17 years ago
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|