forked from Gitlink/forgeplus
FIX type column
This commit is contained in:
parent
116606b153
commit
d66a5e5b42
|
@ -1,7 +1,7 @@
|
|||
user = project.owner
|
||||
if user.blank?
|
||||
nil
|
||||
else
|
||||
else
|
||||
json.id project.id
|
||||
json.repo_id project&.repository&.id
|
||||
json.identifier project.identifier
|
||||
|
@ -15,6 +15,7 @@ json.mirror_url project.repository&.mirror_url
|
|||
json.last_update_time render_unix_time(project.updated_on)
|
||||
json.time_ago time_from_now(project.updated_on)
|
||||
json.forked_from_project_id project.forked_from_project_id
|
||||
json.type @project.numerical_for_project_type
|
||||
json.author do
|
||||
json.name user.try(:show_real_name)
|
||||
json.login user.login
|
||||
|
|
Loading…
Reference in New Issue