parent
bfb58c72b9
commit
ddb3ff5f5b
@ -1,9 +1,13 @@
|
|||||||
json.identifier @repo.identifier
|
json.identifier @repo.identifier
|
||||||
|
json.project_id @project.id
|
||||||
|
json.project_identifier @project.identifier
|
||||||
json.praises_count @repo.project.praises_count
|
json.praises_count @repo.project.praises_count
|
||||||
json.forked_count @repo.project.forked_count
|
json.forked_count @repo.project.forked_count
|
||||||
json.watchers_count @repo.project.watchers_count
|
json.watchers_count @repo.project.watchers_count
|
||||||
json.branches_count @branches_count
|
json.branches_count @branches_count
|
||||||
json.commits_count @commits_count
|
json.commits_count @commits_count
|
||||||
json.permission render_edit_project_permission(current_user, @repo.project)
|
json.permission render_edit_project_permission(current_user, @project)
|
||||||
json.mirror_url @repo.mirror_url
|
json.mirror_url @repo.mirror_url
|
||||||
|
json.watched current_user&.watched?(@project)
|
||||||
|
json.praised current_user&.liked?(@project)
|
||||||
json.partial! 'author', locals: { user: @repo.user }
|
json.partial! 'author', locals: { user: @repo.user }
|
||||||
|
Loading…
Reference in new issue