mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
新增: 用户项目列表以及helper方法
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
if project.present?
|
||||
json.type @project.project_type
|
||||
json.type project.project_type
|
||||
json.(project,
|
||||
:description, :forked_count, :forked_from_project_id, :identifier,
|
||||
:issues_count, :pull_requests_count, :invite_code, :website, :platform,
|
||||
|
||||
5
app/views/api/v1/users/projects/index.json.jbuilder
Normal file
5
app/views/api/v1/users/projects/index.json.jbuilder
Normal file
@@ -0,0 +1,5 @@
|
||||
json.total_count @projects.total_count
|
||||
|
||||
json.projects @projects do |project|
|
||||
json.partial! "api/v1/projects/simple_detail", project: project
|
||||
end
|
||||
Reference in New Issue
Block a user