summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/common/feed.atom.rxml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/common/feed.atom.rxml b/app/views/common/feed.atom.rxml
index 8ceffc91c..c1b88a28e 100644
--- a/app/views/common/feed.atom.rxml
+++ b/app/views/common/feed.atom.rxml
@@ -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