Browse Source

Merged r1585 from trunk.

git-svn-id: http://redmine.rubyforge.org/svn/branches/0.7-stable@1631 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/0.7.3
Jean-Philippe Lang 16 years ago
parent
commit
50755b5913
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      app/views/common/feed.atom.rxml

+ 5
- 1
app/views/common/feed.atom.rxml View File

@@ -10,7 +10,11 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
@items.each do |item|
xml.entry do
url = url_for(item.event_url(:only_path => false))
xml.title truncate_single_line(item.event_title, 100)
if @project
xml.title truncate_single_line(item.event_title, 100)
else
xml.title truncate_single_line("#{item.project} - #{item.event_title}", 100)
end
xml.link "rel" => "alternate", "href" => url
xml.id url
xml.updated item.event_datetime.xmlschema

Loading…
Cancel
Save