summaryrefslogtreecommitdiff
path: root/app/views/projects/branches/index.html.haml
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-07-01 11:40:29 +0100
committerPhil Hughes <me@iamphill.com>2019-07-01 11:40:29 +0100
commit12413158fddf093e9b2cc8d00d66f8c6833a260c (patch)
tree43145fa434253b12c382812e0477a55155a3346c /app/views/projects/branches/index.html.haml
parent8775e4a1faf13a01451e71ea9ef729dc52e6d3c1 (diff)
downloadgitlab-ce-12413158fddf093e9b2cc8d00d66f8c6833a260c.tar.gz
Fetch branch diverging counts from API
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/46139
Diffstat (limited to 'app/views/projects/branches/index.html.haml')
-rw-r--r--app/views/projects/branches/index.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/branches/index.html.haml b/app/views/projects/branches/index.html.haml
index d270e461ac8..11340d12423 100644
--- a/app/views/projects/branches/index.html.haml
+++ b/app/views/projects/branches/index.html.haml
@@ -47,6 +47,7 @@
= render_if_exists 'projects/commits/mirror_status'
+ .js-branch-list{ data: { diverging_counts_endpoint: diverging_commit_counts_namespace_project_branches_path(@project.namespace, @project, format: :json) } }
- if can?(current_user, :admin_project, @project)
- project_settings_link = link_to s_('Branches|project settings'), project_protected_branches_path(@project)
.row-content-block