mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 01:35:56 +08:00
修改列表页的分类数量
This commit is contained in:
@@ -46,7 +46,9 @@ class ProjectsController < ApplicationController
|
||||
else
|
||||
projects = Project.visible
|
||||
end
|
||||
@project_group_list = projects.group(:project_type).select('project_type, count(project_type) AS projects_count').having("count(project_type) > ?", 0)
|
||||
@project_group_list = projects.group(:project_type).size
|
||||
|
||||
# @project_group_list = projects.group(:project_type).select('project_type, count(project_type) AS projects_count').having("count(project_type) > ?", 0)
|
||||
end
|
||||
|
||||
def update
|
||||
|
||||
Reference in New Issue
Block a user