mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
add: applied join project
This commit is contained in:
18
app/views/applied_projects/_detail.json.jbuilder
Normal file
18
app/views/applied_projects/_detail.json.jbuilder
Normal file
@@ -0,0 +1,18 @@
|
||||
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.id object.id
|
||||
json.status object.status
|
||||
json.created_at format_time(object.created_at)
|
||||
json.time_ago time_from_now(object.created_at)
|
||||
1
app/views/applied_projects/create.json.jbuilder
Normal file
1
app/views/applied_projects/create.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "detail", locals: {object: @applied_project}
|
||||
Reference in New Issue
Block a user