Add data-can-commit to repo
This commit is contained in:
parent
869668c9cf
commit
8e8f27f7c3
1 changed files with 1 additions and 1 deletions
|
@ -1 +1 @@
|
|||
#repo{ data: { url: content_url, project_name: project.name, refs_url: refs_project_path(project, format: :json), project_url: project_path(project), project_id: project.id } }
|
||||
#repo{ data: { url: content_url, project_name: project.name, refs_url: refs_project_path(project, format: :json), project_url: project_path(project), project_id: project.id, can_commit: (!!can_push_branch?(project, @ref)).to_s } }
|
||||
|
|
Loading…
Reference in a new issue