Skip to content

Commit 9d62806

Browse files
committed
remove spaces inside {} of RepositoriesController
git-svn-id: http://svn.redmine.org/redmine/trunk@20107 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 69e2e8f commit 9d62806

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/controllers/repositories_controller.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def revisions
120120
to_a
121121

122122
respond_to do |format|
123-
format.html { render :layout => false if request.xhr? }
124-
format.atom { render_feed(@changesets, :title => "#{@project.name}: #{l(:label_revision_plural)}") }
123+
format.html {render :layout => false if request.xhr?}
124+
format.atom {render_feed(@changesets, :title => "#{@project.name}: #{l(:label_revision_plural)}")}
125125
end
126126
end
127127

@@ -148,7 +148,7 @@ def entry_and_raw(is_raw)
148148

149149
if is_raw
150150
# Force the download
151-
send_opt = { :filename => filename_for_content_disposition(@path.split('/').last) }
151+
send_opt = {:filename => filename_for_content_disposition(@path.split('/').last)}
152152
send_type = Redmine::MimeType.of(@path)
153153
send_opt[:type] = send_type.to_s if send_type
154154
send_opt[:disposition] = disposition(@path)
@@ -364,15 +364,15 @@ def graph_commits_per_month(repository)
364364
group(:commit_date).
365365
count
366366
commits_by_month = [0] * 12
367-
commits_by_day.each {|c| commits_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last }
367+
commits_by_day.each {|c| commits_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last}
368368

369369
changes_by_day = Change.
370370
joins(:changeset).
371371
where("#{Changeset.table_name}.repository_id = ? AND #{Changeset.table_name}.commit_date BETWEEN ? AND ?", repository.id, date_from, date_to).
372372
group(:commit_date).
373373
count
374374
changes_by_month = [0] * 12
375-
changes_by_day.each {|c| changes_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last }
375+
changes_by_day.each {|c| changes_by_month[(date_to.month - c.first.to_date.month) % 12] += c.last}
376376

377377
fields = []
378378
today = User.current.today
@@ -401,7 +401,7 @@ def graph_commits_per_author(repository)
401401
changes_data = changes_data + [0]*(10 - changes_data.length) if changes_data.length<10
402402

403403
# Remove email address in usernames
404-
fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '') }
404+
fields = fields.collect {|c| c.gsub(%r{<.+@.+>}, '')}
405405

406406
data = {
407407
:labels => fields.reverse,

0 commit comments

Comments
 (0)