2020-03-20 20:15:43 +08:00
|
|
|
json.project_id @project.id
|
2020-03-25 16:32:45 +08:00
|
|
|
json.project_name @project.name
|
|
|
|
json.project_identifier @project.identifier
|
2020-03-20 20:15:43 +08:00
|
|
|
json.project_description @project.description
|
|
|
|
json.project_category_id @project.project_category_id
|
|
|
|
json.project_language_id @project.project_language_id
|
2020-03-25 17:12:54 +08:00
|
|
|
json.private !@project.is_public
|
2021-03-24 10:50:47 +08:00
|
|
|
json.website @project.website
|
2021-04-08 15:13:35 +08:00
|
|
|
json.project_units @project.project_units.pluck(:unit_type)
|
2021-04-25 18:41:13 +08:00
|
|
|
json.lesson_url @project.lesson_url
|
|
|
|
json.permission render_permission(current_user, @project)
|
2021-04-27 14:40:18 +08:00
|
|
|
json.is_transfering @project.is_transfering
|
|
|
|
json.transfer do
|
|
|
|
json.partial! "/users/user_simple", locals: {user: @project&.applied_transfer_project&.owner}
|
2021-05-27 14:23:59 +08:00
|
|
|
end
|
|
|
|
json.is_pinned @project.has_pinned_users.include?(current_user)
|