[FIX]一些筛选以及创建最大项目数量验证

[FIX]
This commit is contained in:
2021-01-20 18:48:28 +08:00
parent f094fe1799
commit 3f73484596
17 changed files with 73 additions and 11 deletions
@@ -6,4 +6,6 @@ json.location organization.location
json.repo_admin_change_team_access organization.repo_admin_change_team_access
json.visibility organization.visibility
json.max_repo_creation organization.max_repo_creation
json.num_projects organization.num_projects
json.num_user organization.num_users
json.avatar_url url_to_avatar(organization)
@@ -1,6 +1,6 @@
json.total_count @projects.total_count
json.projects @projects.each do |project|
json.(project, :name, :identifier, :description, :forked_count, :praises_count)
json.(project, :id, :name, :identifier, :description, :forked_count, :praises_count)
json.praised project.praised_by?(current_user)
json.last_update_time render_unix_time(project.updated_on)
json.time_ago time_from_now(project.updated_on)
@@ -0,0 +1,6 @@
json.id team_project.id
json.project do
json.owner_name team_project&.project&.owner&.login
json.name team_project&.project&.name
json.identifier team_project&.project&.identifier
end
@@ -0,0 +1 @@
json.partial! "detail", team_project: @team_project, team: @team, organization: @organization
@@ -0,0 +1,4 @@
json.total_count @team_projects.total_count
json.team_projects @team_projects do |team_project|
json.partial! "detail", team_project: team_project, team: @team, organization: @organization
end