diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-02 12:59:29 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-02 12:59:29 +0000 |
commit | 9d628068b716e57773285d6906effb0b0044fa0e (patch) | |
tree | ab18cb805d078b2953065880ca6cb9e2335e0177 /app/controllers/repositories_controller.rb | |
parent | 69e2e8f653193b76c704df9fb9130bf6fed62f5f (diff) | |
download | redmine-9d628068b716e57773285d6906effb0b0044fa0e.tar.gz redmine-9d628068b716e57773285d6906effb0b0044fa0e.zip |
remove spaces inside {} of RepositoriesController
git-svn-id: http://svn.redmine.org/redmine/trunk@20107 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/repositories_controller.rb')
-rw-r--r-- | app/controllers/repositories_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 5ab8e7f4d..b0108d531 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -120,8 +120,8 @@ class RepositoriesController < ApplicationController to_a respond_to do |format| - format.html { render :layout => false if request.xhr? } - format.atom { render_feed(@changesets, :title => "#{@project.name}: #{l(:label_revision_plural)}") } + format.html {render :layout => false if request.xhr?} + format.atom {render_feed(@changesets, :title => "#{@project.name}: #{l(:label_revision_plural)}")} end end @@ -148,7 +148,7 @@ class RepositoriesController < ApplicationController if is_raw # Force the download - send_opt = { :filename => filename_for_content_disposition(@path.split('/').last) } + send_opt = {:filename => filename_for_content_disposition(@path.split('/').last)} send_type = Redmine::MimeType.of(@path) send_opt[:type] = send_type.to_s if send_type send_opt[:disposition] = disposition(@path) @@ -364,7 +364,7 @@ class RepositoriesController < ApplicationController group(:commit_date). count commits_by_month = [0] * 12 - commits_by_day.each {|c| commits_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last } + commits_by_day.each {|c| commits_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last} changes_by_day = Change. joins(:changeset). @@ -372,7 +372,7 @@ class RepositoriesController < ApplicationController group(:commit_date). count changes_by_month = [0] * 12 - changes_by_day.each {|c| changes_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last } + changes_by_day.each {|c| changes_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last} fields = [] today = User.current.today @@ -401,7 +401,7 @@ class RepositoriesController < ApplicationController changes_data = changes_data + [0]*(10 - changes_data.length) if changes_data.length<10 # Remove email address in usernames - fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') } + fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '')} data = { :labels => fields.reverse, |