Merge branch 'forge' of https://bdgit.educoder.net/Hjqreturn/educoder into forge
commit
2469e0792f
@ -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