首页的左侧项目栏无法展开
This commit is contained in:
parent
90e480f7e9
commit
6c9a4a6620
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue