change prints
This commit is contained in:
parent
a4ba9e8a4d
commit
1896865495
|
@ -10,7 +10,7 @@ class ContributionsController < ApplicationController
|
|||
# 超级管理员可以看到项目版本库
|
||||
def show
|
||||
# 顶部导航
|
||||
@project_menu_type = 11
|
||||
@project_menu_type = 5
|
||||
|
||||
Rails.logger.info("!!!!!repository_id is: ")
|
||||
Rails.logger.info(params[:repository_id])
|
||||
|
@ -41,9 +41,16 @@ class ContributionsController < ApplicationController
|
|||
@creator = @project.owner.to_s
|
||||
@repos_url = @g.project(@project.gpid).try(:http_url_to_repo)
|
||||
|
||||
Rails.logger.info("!!!!!! repos_url is: ")
|
||||
Rails.logger.info(@repos_url)
|
||||
|
||||
# 一些数据的异步同步更新
|
||||
# 访问版本庫后更新project_score表数据;changeset_num为提交总数
|
||||
project_score = @project.project_score
|
||||
|
||||
Rails.logger.info("!!!!!! project_score is: ")
|
||||
Rails.logger.info(project_score)
|
||||
|
||||
if project_score.nil?
|
||||
ProjectScore.create(:project_id => @project.id, :score => false)
|
||||
else
|
||||
|
@ -54,6 +61,8 @@ class ContributionsController < ApplicationController
|
|||
update_commits_date(@project, @changesets_latest_coimmit)
|
||||
end
|
||||
|
||||
Rails.logger.info("!!!!!! before render base_projects")
|
||||
|
||||
render :layout => 'base_projects'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue