summaryrefslogtreecommitdiff
path: root/app/views/protected_branches/_branches_list.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/protected_branches/_branches_list.html.haml')
-rw-r--r--app/views/protected_branches/_branches_list.html.haml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/protected_branches/_branches_list.html.haml b/app/views/protected_branches/_branches_list.html.haml
new file mode 100644
index 00000000000..82eac348f16
--- /dev/null
+++ b/app/views/protected_branches/_branches_list.html.haml
@@ -0,0 +1,4 @@
+- can_admin_project = can?(current_user, :admin_project, @project)
+
+= render layout: 'protected_branches/shared/branches_list', locals: { can_admin_project: can_admin_project } do
+ = render partial: 'protected_branches/protected_branch', collection: @protected_branches