diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 15a26fbae..9b2481c1b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -103,6 +103,8 @@ class ProjectsController < ApplicationController end def index + #调用存储过程更新提交次数 + ActiveRecord::Base.connection.execute("CALL sp_project_status_cursor();") #Modified by nie @project_type = params[:project_type].to_i per_page_option = 10 @@ -150,6 +152,7 @@ class ProjectsController < ApplicationController end @projects = @projects.offset(@project_pages.offset).limit(@project_pages.per_page) + respond_to do |format| format.html { render :layout => 'base' diff --git a/app/views/projects/_project.html.erb b/app/views/projects/_project.html.erb index 3c858cce6..41ad2a62c 100644 --- a/app/views/projects/_project.html.erb +++ b/app/views/projects/_project.html.erb @@ -45,7 +45,7 @@ - <% find_project_repository @project %> + <% #find_project_repository @project %> <%= content_tag('span', "#{@project.repository.nil? || @project.project_status.nil? ? '0' : @project.project_status.changesets_count }", :class => "info") %>