]> source.dussan.org Git - redmine.git/commitdiff
Add project name to cross-project Atom feeds (#1527).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Jun 2008 14:54:45 +0000 (14:54 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Jun 2008 14:54:45 +0000 (14:54 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1585 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/common/feed.atom.rxml

index 8ceffc91cc76441da35ecf0e833d4dafbb616b52..c1b88a28e5ba90ef9b668b7186a5edc20c7dde49 100644 (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