首页的左侧项目栏无法展开

This commit is contained in:
cxt 2016-08-09 10:38:44 +08:00
parent 90e480f7e9
commit 6c9a4a6620
1 changed files with 1 additions and 0 deletions

View File

@ -1460,6 +1460,7 @@ class UsersController < ApplicationController
def user_projects4show
@page = params[:page].to_i + 1
@projects = @user.projects.visible.select("projects.*,(SELECT MAX(updated_at) FROM `forge_activities` WHERE forge_activities.project_id = projects.id) AS a").order("a desc").limit(10).offset(@page * 10)
@all_count = @user.projects.visible.count
end
def user_course_activities