]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of app/views/common/feed.atom.builder
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Nov 2020 13:51:34 +0000 (13:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 Nov 2020 13:51:34 +0000 (13:51 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20455 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/common/feed.atom.builder

index 5498c27e22760b99b81316bc0d936ef7ba51684e..a67f7154a58d18b7ed1a79c1c89b8062ff2ffbc9 100644 (file)
@@ -4,9 +4,30 @@ protocol = Setting.protocol
 host = Setting.host_name
 xml.instruct!
 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
-  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    "rel" => "alternate", "href" => url_for(:params => request.query_parameters.merge(:format => nil, :key => nil), :only_path => false, :protocol => protocol, :host => host)
+  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(
+    "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.icon    favicon_url
   xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)