]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of NewsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 22 Oct 2020 14:17:28 +0000 (14:17 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 22 Oct 2020 14:17:28 +0000 (14:17 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20157 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/news_controller.rb

index a67ef88c8498b12c6e6ad7795c2d7ddd97e72387..ac0e6a97e413f05dfe79e626d4318434b9413a1a 100644 (file)
@@ -50,12 +50,19 @@ class NewsController < ApplicationController
                       offset(@offset).
                       to_a
     respond_to do |format|
-      format.html {
+      format.html do
         @news = News.new # for adding news inline
         render :layout => false if request.xhr?
-      }
+      end
       format.api
-      format.atom { render_feed(@newss, :title => (@project ? @project.name : Setting.app_title) + ": #{l(:label_news_plural)}") }
+      format.atom do
+        render_feed(
+          @newss,
+          :title =>
+            (@project ? @project.name : Setting.app_title) +
+              ": #{l(:label_news_plural)}"
+        )
+      end
     end
   end