@@ -120,8 +120,8 @@ def revisions
120
120
to_a
121
121
122
122
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 ) } " ) }
125
125
end
126
126
end
127
127
@@ -148,7 +148,7 @@ def entry_and_raw(is_raw)
148
148
149
149
if is_raw
150
150
# 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 ) }
152
152
send_type = Redmine ::MimeType . of ( @path )
153
153
send_opt [ :type ] = send_type . to_s if send_type
154
154
send_opt [ :disposition ] = disposition ( @path )
@@ -364,15 +364,15 @@ def graph_commits_per_month(repository)
364
364
group ( :commit_date ) .
365
365
count
366
366
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 }
368
368
369
369
changes_by_day = Change .
370
370
joins ( :changeset ) .
371
371
where ( "#{ Changeset . table_name } .repository_id = ? AND #{ Changeset . table_name } .commit_date BETWEEN ? AND ?" , repository . id , date_from , date_to ) .
372
372
group ( :commit_date ) .
373
373
count
374
374
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 }
376
376
377
377
fields = [ ]
378
378
today = User . current . today
@@ -401,7 +401,7 @@ def graph_commits_per_author(repository)
401
401
changes_data = changes_data + [ 0 ] *( 10 - changes_data . length ) if changes_data . length <10
402
402
403
403
# Remove email address in usernames
404
- fields = fields . collect { |c | c . gsub ( %r{<.+@.+>} , '' ) }
404
+ fields = fields . collect { |c | c . gsub ( %r{<.+@.+>} , '' ) }
405
405
406
406
data = {
407
407
:labels => fields . reverse ,
0 commit comments