1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

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
This commit is contained in:
Go MAEDA 2024-02-07 04:27:01 +00:00
parent ba2c48717d
commit cb6a1ec9ea

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