mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
init project
This commit is contained in:
23
app/views/repositories/show.json.jbuilder
Normal file
23
app/views/repositories/show.json.jbuilder
Normal file
@@ -0,0 +1,23 @@
|
||||
json.identifier @repo.identifier
|
||||
json.project_id @project.id
|
||||
json.issues_count @project.issues_count
|
||||
json.pull_requests_count @project.pull_requests_count
|
||||
json.project_identifier @project.identifier
|
||||
json.praises_count @repo.project.praises_count
|
||||
json.forked_count @repo.project.forked_count
|
||||
json.watchers_count @repo.project.watchers_count
|
||||
json.branches_count @branches_count
|
||||
json.commits_count @commits_count
|
||||
json.permission render_edit_project_permission(current_user, @project)
|
||||
json.mirror_url @repo.mirror_url
|
||||
json.watched current_user&.watched?(@project)
|
||||
json.praised current_user&.liked?(@project)
|
||||
json.size @result['size']
|
||||
json.ssh_url @result['ssh_url']
|
||||
json.clone_url @result['clone_url']
|
||||
json.default_branch @result['default_branch']
|
||||
json.empty @result['empty']
|
||||
json.full_name @result['full_name']
|
||||
json.mirror @result['mirror']
|
||||
json.private @result['private']
|
||||
json.partial! 'author', locals: { user: @repo.user }
|
||||
Reference in New Issue
Block a user