modify by hx

This commit is contained in:
houxiang 2015-12-10 15:59:31 +08:00
parent 56cb83ffba
commit e9cfe007bb
2 changed files with 2 additions and 6 deletions

View File

@ -44,7 +44,7 @@ group :development do
gem 'grape-swagger' gem 'grape-swagger'
gem 'better_errors', '~> 1.1.0' gem 'better_errors', '~> 1.1.0'
gem 'rack-mini-profiler', '~> 0.9.3' gem 'rack-mini-profiler', '~> 0.9.3'
gem 'win32console' #gem 'win32console'
end end
group :development, :test do group :development, :test do

View File

@ -346,10 +346,6 @@ update
# end # end
# end # end
@changesets = g.commits(@project.gpid) @changesets = g.commits(@project.gpid)
# @changesets = @repository.latest_changesets(@path, @rev) # @changesets = @repository.latest_changesets(@path, @rev)
# @changesets_count = @repository.latest_changesets(@path, @rev).count # @changesets_count = @repository.latest_changesets(@path, @rev).count
@ -406,7 +402,7 @@ update
count = count_commits(@project.gpid , 25 , 50)+ 25 * 20 count = count_commits(@project.gpid , 25 , 50)+ 25 * 20
elsif g.commits(@project.gpid , :page=>75).count ==0 elsif g.commits(@project.gpid , :page=>75).count ==0
count = count_commits(@project.gpid , 50 , 75)+ 50 * 20 count = count_commits(@project.gpid , 50 , 75)+ 50 * 20
elsif g.commits(@project.gpid , :page=>100).count== 0 elsif g.commits(@project.gpid , :page=>100).count==0
count = count_commits(@project.gpid , 75 , 100) + 75 * 20 count = count_commits(@project.gpid , 75 , 100) + 75 * 20
elsif g.commits(@project.gpid , :page=>125).count==0 elsif g.commits(@project.gpid , :page=>125).count==0
count = count_commits(@project.gpid , 100 , 125) + 100 * 20 count = count_commits(@project.gpid , 100 , 125) + 100 * 20