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)
10 10
  @items.each do |item|
11 11
    xml.entry do
12 12
      url = url_for(item.event_url(:only_path => false))
13
      xml.title truncate_single_line(item.event_title, 100)
13
      if @project
14
        xml.title truncate_single_line(item.event_title, 100)
15
      else
16
        xml.title truncate_single_line(item.project.to_s + " - " + item.event_title, 100)
17
      end
14 18
      xml.link "rel" => "alternate", "href" => url
15 19
      xml.id url
16 20
      xml.updated item.event_datetime.xmlschema
    (1-1/1)