1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

shorten long line of app/views/common/feed.atom.builder

git-svn-id: http://svn.redmine.org/redmine/trunk@20455 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-21 13:51:34 +00:00
parent d42d324a3f
commit 6aa4038d9d

View File

@ -5,8 +5,29 @@ host = Setting.host_name
xml.instruct! xml.instruct!
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do 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, 100)
xml.link "rel" => "self", "href" => url_for(:params => request.query_parameters, :only_path => false, :format => 'atom', :protocol => protocol, :host => host) xml.link(
xml.link "rel" => "alternate", "href" => url_for(:params => request.query_parameters.merge(:format => nil, :key => nil), :only_path => false, :protocol => protocol, :host => host) "rel" => "self",
"href" =>
url_for(
:params => request.query_parameters,
:only_path => false, :format => 'atom',
:protocol => protocol, :host => host
)
)
xml.link(
"rel" => "alternate",
"href" =>
url_for(
:params =>
request.query_parameters.merge(
:format => nil,
:key => nil
),
:only_path => false,
:protocol => protocol,
:host => host
)
)
xml.id home_url xml.id home_url
xml.icon favicon_url xml.icon favicon_url
xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema) xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)