mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX 版本库兼容euducoder平台数据
This commit is contained in:
@@ -10,8 +10,9 @@ class ProjectsController < ApplicationController
|
||||
def index
|
||||
scope = Projects::ListQuery.call(params)
|
||||
|
||||
@projects = kaminari_paginate(scope)
|
||||
@total_count = @projects.total_count
|
||||
# @projects = kaminari_paginate(scope)
|
||||
@projects = paginate scope.includes(:project_category, :project_language, :repository, :project_educoder, owner: :user_extension)
|
||||
@total_count = scope.size
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
Reference in New Issue
Block a user