Project

General

Profile

Patch #1527 ยป atom_project_in_title.patch

Reavis Sutphin-Gray, 2008-06-25 04:16

View differences:

app/views/common/feed.atom.rxml (working copy)
@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.to_s + " - " + item.event_title, 100)
end
xml.link "rel" => "alternate", "href" => url
xml.id url
xml.updated item.event_datetime.xmlschema
    (1-1/1)