mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
add: transfer project
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
project = object.project
|
||||
json.project do
|
||||
json.id project.id
|
||||
json.identifier project.identifier
|
||||
json.name project.name
|
||||
json.description project.description
|
||||
json.is_public project.is_public
|
||||
json.owner do
|
||||
json.partial! "/users/user_simple", locals: {user: project.owner}
|
||||
end
|
||||
end
|
||||
json.user do
|
||||
json.partial! "/users/user_simple", locals: {user: object.user}
|
||||
end
|
||||
json.owner do
|
||||
json.partial! "/users/user_simple", locals: {user: object.owner}
|
||||
end
|
||||
json.id object.id
|
||||
json.status object.status
|
||||
json.created_at format_time(object.created_at)
|
||||
json.time_ago time_from_now(object.created_at)
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! "/projects/applied_transfer_projects/detail", locals: {object: @applied_transfer_project}
|
||||
@@ -0,0 +1 @@
|
||||
json.partial! "/projects/applied_transfer_projects/detail", locals: {object: @applied_transfer_project}
|
||||
@@ -0,0 +1,4 @@
|
||||
json.total_count @organizations.size
|
||||
json.organizations @organizations do |org|
|
||||
json.partial! "/organizations/organizations/simple", locals: {organization: org}
|
||||
end
|
||||
Reference in New Issue
Block a user