mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
修改fork_user.json.jbuilder
This commit is contained in:
@@ -2,7 +2,7 @@ json.count @fork_users.size
|
||||
json.fork_users do
|
||||
json.array! @fork_users.each do |f|
|
||||
user = f.user
|
||||
fork_project = Project.select(:id,).find_by(f.fork_project_id)
|
||||
fork_project = Project.select(:id,:fork_project_id,:name).find_by(id: f.fork_project_id)
|
||||
json.id f.fork_project_id
|
||||
json.name "#{user.try(:show_real_name)}/#{fork_project.name}"
|
||||
json.login user.try(:login)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
json.cout @watch_users.size
|
||||
json.cout @watchers.size
|
||||
json.watchers do
|
||||
json.partial! "/projects/list_user", collection: @watch_user, as: :target
|
||||
json.partial! "/projects/list_user", collection: @watchers, as: :target
|
||||
end
|
||||
Reference in New Issue
Block a user