Browse Source

Raise the maximum length of the title element in the Atom feed from 100 to 300 characters (#34025).

Patch by Go MAEDA (@maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@22685 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/145/merge
Go MAEDA 3 months ago
parent
commit
cb6a1ec9ea
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      app/views/common/feed.atom.builder

+ 3
- 3
app/views/common/feed.atom.builder View File

@@ -2,7 +2,7 @@

xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.title truncate_single_line_raw(@title, 100)
xml.title truncate_single_line_raw(@title, 300)
xml.link "rel" => "self", "href" => url_for(:params => request.query_parameters, :only_path => false, :format => 'atom')
xml.link "rel" => "alternate", "href" => url_for(:params => request.query_parameters.merge(:format => nil, :key => nil), :only_path => false)
xml.id home_url
@@ -14,9 +14,9 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
xml.entry do
url = url_for(item.event_url(:only_path => false))
if @project == item.project
xml.title truncate_single_line_raw(item.event_title, 100)
xml.title truncate_single_line_raw(item.event_title, 300)
else
xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 100)
xml.title truncate_single_line_raw("#{item.project} - #{item.event_title}", 300)
end
xml.link "rel" => "alternate", "href" => url
xml.id url

Loading…
Cancel
Save