Add data-can-commit to repo

This commit is contained in:
Douwe Maan 2017-08-03 16:33:49 +02:00
parent 869668c9cf
commit 8e8f27f7c3

View file

@ -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 } }